junit4 - Java tests not running for sample app? -


i trying example app computer-database , run 'play test'. no tests running. using play 2.1.3.

https://github.com/playframework/playframework/tree/2.1.x/samples/java/computer-database/test

$ play   _ __ | | __ _ _  _| | | '_ \| |/ _' | || |_| |  __/|_|\____|\__ (_) |_|            |__/  play! 2.1.3 (using java 1.7.0_25 , scala 2.10.0), http://www.playframework.org    $ play test [info] functionaltest [info]  [info]  [info] total test functionaltest [info] finished in 0.009 seconds [info] 0 tests, 0 failures, 0 errors [info] modeltest [info]  [info]  [info] total test modeltest [info] finished in 0.001 seconds [info] 0 tests, 0 failures, 0 errors [info] integrationtest [info]  [info]  [info] total test integrationtest [info] finished in 0.0 seconds [info] 0 tests, 0 failures, 0 errors 

this bug in 2.1.3. here workaround. http://play.lighthouseapp.com/projects/82401/tickets/967-tests-are-not-discovered

add dependencies:

"play" %% "play-test" % play.core.playversion.current % "test" exclude("com.novocode", "junit-interface"), "com.novocode" % "junit-interface" % "0.9" % "test" 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -