Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WS-17-18
assignment-tests
Commits
03c9d393
Commit
03c9d393
authored
Mar 12, 2018
by
Jon Amos Fehling
Browse files
add disabled performance tests
parent
faec76da
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
src/final_assignment/task_2/CaseCreator.java
View file @
03c9d393
...
...
@@ -16,7 +16,7 @@ public class CaseCreator {
private
final
int
nCountries
=
200
;
private
final
int
nSports
=
50
;
private
final
int
nAthletes
=
2
0
;
private
final
int
nAthletes
=
80
0
;
private
final
int
nErrors
=
10
;
...
...
src/final_assignment/task_2/tests/PerformanceTest.java
View file @
03c9d393
...
...
@@ -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
(
"
p
erformance
-t
est
-
2"
)
public
void
performanceTest2
()
{
@DisplayName
(
"
P
erformance
T
est2"
)
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
));
}
}
src/final_assignment/task_2/tests/data/performance/performance_test_2.io
0 → 100644
View file @
03c9d393
This diff is collapsed.
Click to expand it.
src/final_assignment/task_2/tests/data/performance/performance_test_3.io
0 → 100644
View file @
03c9d393
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment