Commit 03c9d393 authored by Jon Amos Fehling's avatar Jon Amos Fehling
Browse files

add disabled performance tests

parent faec76da
......@@ -16,7 +16,7 @@ public class CaseCreator {
private final int nCountries = 200;
private final int nSports = 50;
private final int nAthletes = 20;
private final int nAthletes = 800;
private final int nErrors = 10;
......
......@@ -18,13 +18,30 @@ public class PerformanceTest extends Assignment2TestBase {
testUsingPairs(pairs, () -> DummyMain.main(null));
}
@Disabled
/**
* The following 2 performance tests are disabled because they wont finish in acceptable time
* unless your implementation has a good time complexity. Fell free to enable them
* by removing '@Disabled'. You may run them individually because they need a hugh
* amount of memory.
*/
//@Disabled
@Test
@DisplayName("performance-test-2")
public void performanceTest2() {
@DisplayName("PerformanceTest2")
void performanceTest2() {
String path = getDataFolderDirectory() + "performance/performance_test_2.io";
TestPair[] pairs = loadTestPairsFromIOFile(path);
enablePerformanceTest();
testUsingPairs(pairs, () -> DummyMain.main(null));
}
//@Disabled
@Test
@DisplayName("PerformanceTest3")
void performanceTest3() {
String path = getDataFolderDirectory() + "performance/performance_test_3.io";
TestPair[] pairs = loadTestPairsFromIOFile(path);
enablePerformanceTest();
testUsingPairs(pairs, () -> DummyMain.main(null));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment