Hello, What is the correct Kotlin syntax for exclu...
# community-support
l
Hello, What is the correct Kotlin syntax for excluding testNG groups? What I copied in was the Groovy syntax, but I’m sure it is not correct: In build.gradle.kts:
tasks.named<Test>(“test”) {
useTestNG() {
excludeGroups 'GENERATE_JAVA_FILES', 'CHECK_CPP_HISTORICAL_FILES', 'CHECK_CPP_FILES'
}
}
v
Probably double quotes instead of single quotes and parentheses around the list of groups. But your IDE should greatly help with that if you use a good one like IntelliJ IDEA or Android Studio. That is one of the major advantages of Kotlin DSL.
Well almost, have a look at the user guide it almost always have an example in both DSLs and it has for excluding groups