JUnit has a @ResourceLock annotation (https://docs.junit.org/current/api/org.junit.jupiter.api/org/junit/jupiter/api/parallel/ResourceLock.html) that can be added to a test to prevent scheduling at the same time of any tests that utilize the shared resource. There are several times that I have had a set of tests that I do not want to run at the same time as each other but still want to run in parallel with other tests. The tests are not dependent on each other. I have not found an elegant way to make these tests run at mutually exclusive. Please add a way to mark that certain tests will not be scheduled to run at the same time as each other.
JUnit has a
@ResourceLockannotation (https://docs.junit.org/current/api/org.junit.jupiter.api/org/junit/jupiter/api/parallel/ResourceLock.html) that can be added to a test to prevent scheduling at the same time of any tests that utilize the shared resource. There are several times that I have had a set of tests that I do not want to run at the same time as each other but still want to run in parallel with other tests. The tests are not dependent on each other. I have not found an elegant way to make these tests run at mutually exclusive. Please add a way to mark that certain tests will not be scheduled to run at the same time as each other.