[Native][tests] Move "samples" tests to infrastructure tests
This commit is contained in:
@@ -103,9 +103,7 @@ fun Test.setUpBlackBoxTest(tag: String) {
|
||||
}
|
||||
|
||||
val infrastructureTest by projectTest(taskName = "infrastructureTest", jUnitMode = JUnitMode.JUnit5) {
|
||||
useJUnitPlatform {
|
||||
includeTags("infrastructure")
|
||||
}
|
||||
setUpBlackBoxTest("infrastructure")
|
||||
}
|
||||
|
||||
val dailyTest by projectTest(taskName = "dailyTest", jUnitMode = JUnitMode.JUnit5) {
|
||||
|
||||
+3
-1
@@ -31,7 +31,8 @@ fun main() {
|
||||
// Samples (how to utilize the abilities of new test infrastructure).
|
||||
testGroup("native/native.tests/tests-gen", "native/native.tests/testData") {
|
||||
testClass<AbstractNativeBlackBoxTest>(
|
||||
annotations = listOf(daily(), provider<UseStandardTestCaseGroupProvider>())
|
||||
suiteTestClassName = "NativeInfraBlackBoxTestGenerated",
|
||||
annotations = listOf(infrastructure(), provider<UseStandardTestCaseGroupProvider>())
|
||||
) {
|
||||
model("samples")
|
||||
model("samples2")
|
||||
@@ -42,3 +43,4 @@ fun main() {
|
||||
|
||||
private inline fun <reified T : Annotation> provider() = annotation(T::class.java)
|
||||
private fun daily() = annotation(Tag::class.java, "daily")
|
||||
private fun infrastructure() = annotation(Tag::class.java, "infrastructure")
|
||||
|
||||
Reference in New Issue
Block a user