maiflai / gradle-scalatest

A plugin to enable the use of scalatest in a gradle Scala project.
The Unlicense
73 stars 35 forks source link

filtering test cases #71

Closed geoHeil closed 4 years ago

geoHeil commented 5 years ago

the documentation suggests to use:

./gradlew test --tests MyTest

however, this never outputs the standard out logs and never fails the test. A gradle test works just fine (but is inefficient) as I cannot filter.

What is causing this strange behaviour? How can I filter tests on CLI according to some prefix but still see the logs and have them fail.

maiflai commented 5 years ago

What Spec are you using please? I've seen interesting behaviour here...

maiflai commented 5 years ago

I think that this doesn't work very well with tags.

In my project I've defined extra Test tasks for certain tag combinations. The command below executes all the integration tests, rather than just the intended tests.

./gradlew integrationTest --tests MyTest

Are you using tags here please?

maiflai commented 4 years ago

Closing due to lack of response.