api / org.gradle.api.tasks.testing.testng / TestNGOptions / isPreserveOrder

isPreserveOrder

@Incubating open fun isPreserveOrder(): Boolean

Indicates whether the tests should be run in deterministic order. Preserving the order guarantees that the complete test (including @BeforeXXX and @AfterXXX) is run in a test thread before the next test is run. Not required. If not present, the order will not be preserved.