Play 2.0 doesn't run all tests

两盒软妹~` 提交于 2019-12-24 15:57:53

问题


I'm porting an application over to Play 2.0 and for some reason it's not running all the tests. It finds all the test classes. But just doesn't run any tests in most of them. I tried moving the classes to the base of tests directory, but that didn't make a difference.

The tests it doesn't run contain tests for the persistence using hibernate JPA. The classes have a common base class for managing the database state across tests.

I'm expecting the persistence tests to blow up spectacularly but right I just get a green light because it doesn't run any of the tests in them.


回答1:


I'll answer my own in case someone else trips in to this.

If you have a failing setup step, say @BeforeClass annotated method throws an exception, then Play will report the test case as 0 out of 0 tests run.



来源:https://stackoverflow.com/questions/14548953/play-2-0-doesnt-run-all-tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!