STAMP-project / test-runner

test driver to run JUnit tests isolated in a new JVM
GNU General Public License v3.0
16 stars 15 forks source link

Improve isolated process error handling #130

Closed andre15silva closed 2 years ago

andre15silva commented 2 years ago

The current error logging of OOM errors from the isolated test running process is not great, and can result in misleading errors such as java.lang.RuntimeException: java.nio.file.NoSuchFileException: CoveredTestResultPerTest.dat (https://github.com/SpoonLabs/flacoco/issues/121)

For that we probably need to change the way we check if the process exited successfully here: https://github.com/STAMP-project/test-runner/blob/6130e56e0785296f1b5f9b236a6d078327733596/src/main/java/eu/stamp_project/testrunner/EntryPoint.java#L760-L767