Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Scalatest #122

Open
JLLeitschuh opened this issue Dec 26, 2019 · 3 comments
Open

Support Scalatest #122

JLLeitschuh opened this issue Dec 26, 2019 · 3 comments

Comments

@JLLeitschuh
Copy link
Contributor

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>>
}
@will-sargent-eero
Copy link

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

@JLLeitschuh
Copy link
Contributor Author

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

@will-sargent-eero
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants