mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Fix bad test directory.
This commit is contained in:
parent
5c3642b7d7
commit
2e73ece52c
1 changed files with 7 additions and 2 deletions
|
@ -27,7 +27,10 @@ class TestNgRunner : GenericTestRunner() {
|
||||||
override val annotationPackage = "org.testng"
|
override val annotationPackage = "org.testng"
|
||||||
override val runnerName = "TestNG"
|
override val runnerName = "TestNG"
|
||||||
|
|
||||||
private fun defaultOutput(project: Project) = KFiles.joinDir(project.directory, project.buildDirectory, "test-output")
|
private fun defaultOutputWithoutProjectDir(project: Project)
|
||||||
|
= KFiles.joinDir(project.buildDirectory, "test-output")
|
||||||
|
private fun defaultOutput(project: Project)
|
||||||
|
= KFiles.joinDir(project.directory, project.buildDirectory, "test-output")
|
||||||
|
|
||||||
override fun args(project: Project, context: KobaltContext, classpath: List<IClasspathDependency>,
|
override fun args(project: Project, context: KobaltContext, classpath: List<IClasspathDependency>,
|
||||||
testConfig: TestConfig) = arrayListOf<String>().apply {
|
testConfig: TestConfig) = arrayListOf<String>().apply {
|
||||||
|
@ -39,7 +42,9 @@ class TestNgRunner : GenericTestRunner() {
|
||||||
|
|
||||||
if (testConfig.testArgs.none { it == "-d" }) {
|
if (testConfig.testArgs.none { it == "-d" }) {
|
||||||
add("-d")
|
add("-d")
|
||||||
add(defaultOutput(project))
|
// Don't include the project directory here since the generic runner will cd to that directory before
|
||||||
|
// running the tests
|
||||||
|
add(defaultOutputWithoutProjectDir(project))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (testConfig.testArgs.size == 0) {
|
if (testConfig.testArgs.size == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue