make integration tests run after unit tests

This commit is contained in:
Bixilon 2022-11-14 15:52:49 +01:00
parent 6ea2db1f79
commit c85b73c793
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -133,8 +133,7 @@ when (os) {
testing {
suites {
val test by getting(JvmTestSuite::class) {
getting(JvmTestSuite::class) {
testType.set(TestSuiteType.UNIT_TEST)
useJUnitJupiter("5.9.1")
@ -174,7 +173,7 @@ testing {
}
val integrationTest by registering(JvmTestSuite::class) {
registering(JvmTestSuite::class) {
testType.set(TestSuiteType.INTEGRATION_TEST)
useTestNG("7.6.1")
@ -211,7 +210,7 @@ testing {
val options = this as TestNGOptions
options.preserveOrder = true
}
shouldRunAfter(test)
shouldRunAfter("test")
}
}
}
@ -221,7 +220,7 @@ testing {
}
}
}
val benchmarkTest by registering(JvmTestSuite::class) {
registering(JvmTestSuite::class) {
testType.set(TestSuiteType.PERFORMANCE_TEST)
useTestNG("7.6.1")