Skip to content

Commit

Permalink
Add fork in Test to generated Build.scala
Browse files Browse the repository at this point in the history
Since Java options are passed to the process, one needs to fork a
new process to run tests in order to read the -Dskinny.env=test
property.
  • Loading branch information
lloydmeta committed May 15, 2015
1 parent 1171ce0 commit 9fb353e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yeoman-generator-skinny/app/templates/project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ object SkinnyAppBuild extends Build {
"sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
//,"sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
),
// Faster "./skinny idea"
// Faster "./skinny idea"
transitiveClassifiers in Global := Seq(Artifact.SourceClassifier),
// the name-hashing algorithm for the incremental compiler.
incOptions := incOptions.value.withNameHashing(true),
logBuffered in Test := false,
javaOptions in Test ++= Seq("-Dskinny.env=test"),
fork in Test := true,
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature"),
ideaExcludeFolders := Seq(".idea", ".idea_modules", "db", "target", "task/target", "build", "standalone-build", "node_modules")
)
Expand Down

0 comments on commit 9fb353e

Please sign in to comment.