Skip to content

Commit

Permalink
Include --private when executing a spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Mar 10, 2024
1 parent 7fcd698 commit 723d106
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ class KotestRunnableState(

// spec can be omitted if you want to run all tests in a module
val specName = configuration.getSpecName()
if (!specName.isNullOrBlank())
if (!specName.isNullOrBlank()) {
params.programParametersList.add("--spec", specName)
params.programParametersList.add("--private", "true")
}

// test can be omitted if you want to run the entire spec or package
val testPath = configuration.getTestPath()
if (!testPath.isNullOrBlank())
params.programParametersList.add("--testpath", testPath)

// we want to specify to output in intellij compatible format
launcherConfig.params.forEach {
params.programParametersList.add(it)
}
Expand Down

0 comments on commit 723d106

Please sign in to comment.