We are running "sbt test" to execute our tests on multiple projects. But we now have tests which need to execute in a specific order. So first all tests with @attributeX
and after all these tests are completed we want to execute every test which doesn't contain attribute @attributeX
.
sbt testOnly -- -n attributeX
sbt testOnly -- -l attributeX
This implementation works fine, but our issue is with the test reports. When the first run is completed we have our test reports for these tests, but when the second run has completed, the XML files are all generated again and this deleted the results of the first run.
Is there a easy way to configure in either build.sbt
that we want to run groups of tests in a specific order (so we still want to run tests parallel but only within the group). Or can we somehow merge the two test results into one when executing these commands separately?