Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 7cb93b24 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

extending loss-map to make tests run

parent 06c6d9f3
No related branches found
No related tags found
No related merge requests found
......@@ -186,11 +186,13 @@ namespace TUGraz.VectoCore.Tests.Integration
var modFileName = "40t_Long_Haul_Truck_RegionalDeliveryFullLoading.vmod";
var modFileName1Hz = "40t_Long_Haul_Truck_RegionalDeliveryFullLoading_1Hz.vmod";
if (File.Exists(modFileName))
if (File.Exists(modFileName)) {
File.Delete(modFileName);
}
if (File.Exists(modFileName1Hz))
if (File.Exists(modFileName1Hz)) {
File.Delete(modFileName1Hz);
}
var inputData = JSONInputDataFactory.ReadJsonJob(LongHaulTruckDeclarationJob);
var fileWriter = new FileOutputWriter("Truck40t_Mod1Hz_Test.vecto");
......@@ -286,7 +288,7 @@ namespace TUGraz.VectoCore.Tests.Integration
var jobContainer = new JobContainer(sumData);
jobContainer.AddRuns(factory);
//var i = 7;
//var i = 2;
//jobContainer.Runs[i].Run.Run();
//Assert.IsTrue(jobContainer.Runs[i].Run.FinishedWithoutErrors);
......@@ -299,7 +301,10 @@ namespace TUGraz.VectoCore.Tests.Integration
jobContainer.Execute();
jobContainer.WaitFinished();
Assert.IsTrue(jobContainer.Runs.All(r => r.Success), string.Concat(jobContainer.Runs.Select(r => r.ExecException)));
Assert.IsTrue(jobContainer.Runs.All(r => r.Success),
string.Format("folowing runs failed: {0}\n{1}",
string.Concat(jobContainer.Runs.Where(r => !r.Success).Select(r => r.Run.RunName + " - " + r.Run.CycleName)),
string.Concat(jobContainer.Runs.Select(r => r.ExecException))));
}
[TestMethod, TestCategory("LongRunning")]
......
......@@ -152,3 +152,5 @@ Input Speed [rpm],Input Torque [Nm],Torque Loss [Nm],Eff [-]
3200,4500,107.5
3200,5500,122.5
3200,6500,137.5
0, -10000, 300
3200,-10000, 175
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment