我製作了eclipse的應用程序項目。我正在開發java應用程序,而不是使用scala。如何在運行框架中運行JUnit測試用例2.3.2
在默認包下有測試源文件夾下的默認測試用例。類名是ApplicationTest
我已經閱讀了關於如何使用JUnit編寫測試用例。缺省測試用例使用相同的方式編寫。我使用激活器運行我的應用程序,但無法運行測試用例。找不到關於它的很多信息。
在激活控制檯測試命令顯示0個測試用例。以下是outout
[email protected]:content-engine$ ./activator
[info] Loading project definition from /home/mindt/gitrepo/content-engine/project
[info] Set current project to Content-Engine (in build file:/home/mindt/gitrepo/content-engine/)
[Content-Engine] $ test
[info] Compiling 4 Java sources to /home/mindt/gitrepo/content-engine/target/scala-2.11/classes...
[success] Total time: 4 s, completed 30 Aug, 2014 6:03:50 PM
[Content-Engine] $ testOnly
[info] Compiling 4 Java sources to /home/mindt/gitrepo/content-engine/target/scala-2.11/classes...
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] No tests to run for test:testOnly
[success] Total time: 2 s, completed 30 Aug, 2014 6:03:55 PM
[Content-Engine] $
謝謝!