Open wurzelkuchen opened 4 months ago
Additional Info: here is the stacktrace happening when this bug kicks in.
java.lang.NullPointerException: Cannot invoke "java.nio.channels.FileLock.release()" because "lock" is null
at com.xceptance.neodymium.util.AllureAddons.addEnvironmentInformation(AllureAddons.java:187)
at com.xceptance.neodymium.junit5.NeodymiumRunner.
Quick Description
When adding the environment information we use a file lock, to ensure flawless concurrent access. This however has a bug when parallel file access is performed.
Actual Behaviour
If there are parallel test runs, the file lock might be null, which leads to a breaking test case. Also data might be overwritten currently.
Expected Behaviour
If there are parallel test runs, the environment information from both runs will be added but no duplicates are written.
Tasks