Commit 71bad007 authored by Alexander's avatar Alexander
Browse files

rework performance test

parent 57bf0e9a
......@@ -16,7 +16,7 @@ public class CaseCreator {
private final int nCountries = 200;
private final int nSports = 100;
private final int nAthletes = 100;
private final int nAthletes = 20;
private final int nErrors = 10;
......
......@@ -7,33 +7,24 @@ import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import test.TestPair;
public class PerformanceTest extends Assignment2TestBase{
public class PerformanceTest extends Assignment2TestBase {
@Test
@DisplayName("performance-test-1")
public void performanceTest1(){
public void performanceTest1() {
String path = getDataFolderDirectory() + "performance/performance_test_1.io";
TestPair[] pairs = loadTestPairsFromIOFile(path);
enablePerformanceTest();
testUsingPairs(pairs,()-> DummyMain.main(null));
testUsingPairs(pairs, () -> DummyMain.main(null));
}
@Disabled
@Test
@DisplayName("performance-test-2")
public void performanceTest2(){
public void performanceTest2() {
String path = getDataFolderDirectory() + "performance/performance_test_2.io";
TestPair[] pairs = loadTestPairsFromIOFile(path);
enablePerformanceTest();
testUsingPairs(pairs,()-> DummyMain.main(null));
}
@Disabled
@Test
@DisplayName("performance-test-3")
public void performanceTest3(){
String path = getDataFolderDirectory() + "performance/performance_test_3.io";
TestPair[] pairs = loadTestPairsFromIOFile(path);
enablePerformanceTest();
testUsingPairs(pairs,()-> DummyMain.main(null));
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