mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Only run the suite once.
This commit is contained in:
parent
467da05ab1
commit
e451eb8661
1 changed files with 12 additions and 9 deletions
|
@ -26,6 +26,8 @@ public class TestNgRunner() : GenericTestRunner() {
|
||||||
}
|
}
|
||||||
addAll(project.testArgs)
|
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"))
|
val testngXml = File(project.directory, KFiles.joinDir("src", "test", "resources", "testng.xml"))
|
||||||
if (testngXml.exists()) {
|
if (testngXml.exists()) {
|
||||||
add(testngXml.absolutePath)
|
add(testngXml.absolutePath)
|
||||||
|
@ -39,4 +41,5 @@ public class TestNgRunner() : GenericTestRunner() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue