mtkopone / scct

Scala Code Coverage Tool
http://mtkopone.github.com/scct/
Apache License 2.0
129 stars 39 forks source link

Seems scct doesn't pick up test in Play framework v2 using sbt 0.112.0 #44

Open zhiyuchen opened 11 years ago

zhiyuchen commented 11 years ago

I'm trying to use scct to generate code coverage report for an application using Play framework v2 based on sbt 0.12.0. My tests are written in Java using a sbt testng plugin, and when I run "sbt test", the tests will be executed successfully.

But when I run "sbt scct:test", it compiles successfully, but doesn't generate any code coverage report with a message saying no tests found. Test classes are created under {app_dir}/target/scala-2.9.2/scct-test-classes/

Does scct support play v2 and tests written in java? If so, could you please point me to how to troubleshooting this issue? Thanks!

0xRoch commented 11 years ago

try to add sequential at the top of your specs

class MySpec extends Specification { sequential

"MyApp" should { //...// }

}