playframework icon indicating copy to clipboard operation
playframework copied to clipboard

Support Scalatest

Open JLLeitschuh opened this issue 5 years ago • 3 comments

This plugin may be a good basis for supporting Scalatest for Gradle.

https://github.com/maiflai/gradle-scalatest

I didn't want the full functionality of the plugin, just the test action, so I ended up just hijacking that component with the following logic:

tasks.withType<Test>().configureEach {
    actions = mutableListOf(
        com.github.maiflai.ScalaTestAction(null)
    ) as List<Action<Task>>
}

JLLeitschuh avatar Dec 26 '19 22:12 JLLeitschuh

It is -- I am already using it in conjunction.

will-sargent-eero avatar Dec 30 '19 19:12 will-sargent-eero

So, the things so far that I've determined that don't work with this plugin:

  • Excluding tests by name/class
  • Test events
  • Test reports in build scans

JLLeitschuh avatar Dec 30 '19 19:12 JLLeitschuh

the test report does work, the out of the box HTML is wonky though.

will-sargent-eero avatar Dec 30 '19 19:12 will-sargent-eero