diff options
Diffstat (limited to 'example/staticFiles/build.sc')
-rw-r--r-- | example/staticFiles/build.sc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/example/staticFiles/build.sc b/example/staticFiles/build.sc index 0e803b8..00a7ee3 100644 --- a/example/staticFiles/build.sc +++ b/example/staticFiles/build.sc @@ -4,9 +4,11 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.9", + ivy"com.lihaoyi::cask:0.1.0", ) + def forkWorkingDir = build.millSourcePath + object test extends Tests{ def testFrameworks = Seq("utest.runner.Framework") @@ -14,5 +16,12 @@ trait AppModule extends ScalaModule{ ivy"com.lihaoyi::utest::0.6.3", ivy"com.lihaoyi::requests::0.1.2", ) + + def forkWorkingDir = build.millSourcePath + + // redirect this to the forked `test` to make sure static file serving works + def testLocal(args: String*) = T.command{ + test(args:_*) + } } }
\ No newline at end of file |