I have the following tests classes.
com.baz.bar.Foo
com.bar.foo.Baz
com.foo.baz.Bar
I want to execute com.baz.bar.Foo
and com.bar.foo.Baz
. I know how to execute all of them and how to execute one of them. I don't know how to execute any arbitrary set between.
To skip any task from the Gradle build, we can use the -x or –exclude-task option. In this case, we'll use “-x test” to skip tests from the build.
Gradle supports multiple --tests
statements, i.e:
gradle test --tests com.baz.bar.Foo --tests com.bar.foo.Baz --tests com.foo.baz.Bar
would do what you want
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With