1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Only run the suite once.

This commit is contained in:
Cedric Beust 2016-01-02 10:04:12 -08:00
parent 467da05ab1
commit e451eb8661

View file

@ -26,6 +26,8 @@ public class TestNgRunner() : GenericTestRunner() {
}
addAll(project.testArgs)
if (project.testArgs.size == 0) {
// No arguments, so we'll do it ourselves. Either testng.xml or the list of classes
val testngXml = File(project.directory, KFiles.joinDir("src", "test", "resources", "testng.xml"))
if (testngXml.exists()) {
add(testngXml.absolutePath)
@ -40,3 +42,4 @@ public class TestNgRunner() : GenericTestRunner() {
}
}
}
}