playframework
playframework copied to clipboard
Support Scalatest
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>>
}
It is -- I am already using it in conjunction.
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
the test report does work, the out of the box HTML is wonky though.