Skip to content

Commit

Permalink
internal: run tests in forked JVM
Browse files Browse the repository at this point in the history
... so that `System.exit` during test doesn't quit sbt
  • Loading branch information
hrj committed Sep 25, 2016
1 parent 073dcc8 commit 73ddbf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Dependencies._

libraryDependencies += scalatest % "test"

fork in Test := true
2 changes: 1 addition & 1 deletion cli/src/test/scala/co/uproot/abandon/CliTestRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CliTestRunner extends FlatSpec with Matchers with Inside {
"Testrunner" should "automatically test multiple dirs and confs" in {

val testConfs =
for (d <- FileUtils.listDirs("testCases", ".*/sclT[0-9]+(-.*)$")) yield {
for (d <- FileUtils.listDirs("../testCases", ".*/sclT[0-9]+(-.*)$")) yield {
for (f <- FileUtils.listFilesRecursive(d.getAbsolutePath, ".*\\.conf$")) yield { f }
}

Expand Down

0 comments on commit 73ddbf2

Please sign in to comment.