diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-01 17:47:08 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-01 17:47:44 -0800 |
commit | 6074133396839db40e37aa3c0935edf875d4beba (patch) | |
tree | d9bfb61e7201c3d77a1f1bbad21f29f7a021e31c /scalalib | |
parent | e1241f1da8e55cfba3286c438ac26e4d09df63ff (diff) | |
download | mill-6074133396839db40e37aa3c0935edf875d4beba.tar.gz mill-6074133396839db40e37aa3c0935edf875d4beba.tar.bz2 mill-6074133396839db40e37aa3c0935edf875d4beba.zip |
Fix `idea` project generation, and make `Result.Exception` display the offending stack trace so they're easier to debug
Diffstat (limited to 'scalalib')
-rw-r--r-- | scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala b/scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala index 0f4b1223..eb883469 100644 --- a/scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala +++ b/scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala @@ -170,7 +170,7 @@ object HelloWorldTests extends TestSuite { 'failOnError - { write.append(mainObject, "val x: ") - val Left(Result.Exception(err)) = helloWorldEvaluator(HelloWorld.compile) + val Left(Result.Exception(err, _)) = helloWorldEvaluator(HelloWorld.compile) assert(err.isInstanceOf[CompileFailed]) @@ -190,7 +190,7 @@ object HelloWorldTests extends TestSuite { } 'passScalacOptions - { // compilation fails because of "-Xfatal-warnings" flag - val Left(Result.Exception(err)) = helloWorldFatalEvaluator(HelloWorldFatalWarnings.compile) + val Left(Result.Exception(err, _)) = helloWorldFatalEvaluator(HelloWorldFatalWarnings.compile) assert(err.isInstanceOf[CompileFailed]) } @@ -232,7 +232,7 @@ object HelloWorldTests extends TestSuite { 'notRunInvalidMainObject - { - val Left(Result.Exception(err)) = helloWorldEvaluator(HelloWorld.runMain("Invalid")) + val Left(Result.Exception(err, _)) = helloWorldEvaluator(HelloWorld.runMain("Invalid")) assert( err.isInstanceOf[InteractiveShelloutException] @@ -241,7 +241,7 @@ object HelloWorldTests extends TestSuite { 'notRunWhenComplileFailed - { write.append(mainObject, "val x: ") - val Left(Result.Exception(err)) = helloWorldEvaluator(HelloWorld.runMain("Main")) + val Left(Result.Exception(err, _)) = helloWorldEvaluator(HelloWorld.runMain("Main")) assert( err.isInstanceOf[CompileFailed] @@ -264,7 +264,7 @@ object HelloWorldTests extends TestSuite { ) } 'notRunWithoutMainClass - { - val Left(Result.Exception(err)) = helloWorldEvaluator(HelloWorld.run()) + val Left(Result.Exception(err, _)) = helloWorldEvaluator(HelloWorld.run()) assert( err.isInstanceOf[RuntimeException] |