running several tests with different compiler args at once does not work
If i run the tests by hand then everything works fine. But if i run the automatic assessment then they don't work anymore.
I added specific files to the compiler args, so that only a subset of classes is compiled for each test. This allows me to run Test individually even if there is a syntax error in the other files.
The project looks like this:
Tester.java (This is the specified main class in the template)
OtherClass1.java
OtherClass2.java
...
Then there are tests:
Test for OtherClass1 (compiler args: > OtherClass1.java <)
Test for OtherClass2 (compiler args: > OtherClass2.java <)
...
In the automatic assessment the first test runs fine, and the subsequent tests fail. (The OtherClassX was not compiled and therefore not found via reflection) I also tried:
Dummytest (compiler args: > OtherClass1.java OtherClass2.java ... OtherClassN.java <)
Test for OtherClass1 (compiler args: > OtherClass1.java <)
Test for OtherClass2 (compiler args: > OtherClass2.java <)
...
Which results in a successful Dummytest and Test for OtherClass1. But all other tests still fail.
https://yapex.informatik.uni-halle.de/#/doeditor/exercises/5d47683o8l95-8954
UPDATE:
The bug also appears, if all the run all tests button is used in the gui.
But with a slightly different error message: “write-error” -> “can’t write to process”