When including a jar of unit tests on the gradle unit test phase - how do we filter out certain test classes?

(Jay Vyas) #1

Related to my other question about how to include certain dependencies conditionally,

I’d like to include a jar, which has unit tests in it. However, I’d like to only run “some” of those tests, so i’d like to do an “include/exclude” of sorts , similar to the way we can do with individula include/exclude of source files in the compilation phase.

(Jay Vyas) #2

It appears that section “23.12.3: Test filtering” Describes this.

  1. You can filter individual methods 2) You can filter based on class name

  2. You can filter on package name

and so on.