开发者

how to run playframework FunctionalTest through Eclipse?

开发者 https://www.devze.com 2023-03-22 06:16 出处:网络
and the second question: is it possible to run them all in a bunc开发者_StackOverflow社区h through Eclipse?One approach could be, Install \'antify\' module and run \'play antify\' on your application

and the second question:

is it possible to run them all in a bunc开发者_StackOverflow社区h through Eclipse?


One approach could be, Install 'antify' module and run 'play antify' on your application. It will create a build.xml for your app (which would import the needed targets from application-build.xml file) and run 'auto-test' from eclipse.


FunctionalTest and UnitTest extend BaseTest, which is annotated with the PlayJunit4TestRunner, so you should find that you can just run tests as you would with any other test (i.e. Run As > Junit Test). You'll see the Play environment being initialised on the console before the tests actually run.

One problem I've found is that running a whole package of Play tests in Eclipse is buggy, so I tend to just run one at a time in Eclipse and then use Play's own testrunner to verify the whole suite.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号