我在业务逻辑中更改代码后运行测试用例。我运行测试用例,但它只是简单地说NullPoinerException就失败了。但它没有显示任何关于这个问题的细节。就是这样:
> it:testOnly com.company.project.Module.write.AlertModuleSpraySpec -F
[trace] Stack trace suppressed: run last project-Module-read/it:testOnly for the full output.
[error] Could not run test com.company.project.Module.write.AlertModuleSpraySpec: java.lang.NullPointerException
[info] Run completed in 1 second, 973 milliseconds.
[info] Total number of tests run: 0
[info] Suites: completed 0, aborted 0
[info] Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[error] Error during tests:
[error] com.company.project.Module.write.AlertModuleSpraySpec
[error] (project-Module-read/it:testOnly) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 2 s, completed 28 Nov, 2016 2:04:45 PM