Commit b2a73734 authored by Jon Amos Fehling's avatar Jon Amos Fehling
Browse files

add performance test

parent 40cdb521
...@@ -14,10 +14,10 @@ public class CaseCreator { ...@@ -14,10 +14,10 @@ public class CaseCreator {
private final Random random = new Random(); private final Random random = new Random();
private long rgenseed = System.currentTimeMillis(); private long rgenseed = System.currentTimeMillis();
private final int nCountries = 10; private final int nCountries = 200;
private final int nSports = 2; private final int nSports = 100;
private final int nAthletes = 10; private final int nAthletes = 100;
private final int nErrors = 2; private final int nErrors = 10;
public static void main(String args[]) { public static void main(String args[]) {
......
package final_assignment.task_2.tests;
import final_assignment.task_2.Assignment2TestBase;
import final_assignment.task_2.DummyMain;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import test.TestPair;
public class PerformanceTest extends Assignment2TestBase{
@Test
@DisplayName("performance-test-1")
public void performanceTest1(){
String path = getDataFolderDirectory() + "performance/performance_test_1.io";
TestPair[] pairs = loadTestPairsFromIOFile(path);
enablePerformanceTest();
testUsingPairs(pairs,()-> DummyMain.main(null));
}
@Test
@DisplayName("performance-test-2")
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));
}
}
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