Hubert Klein Ikkink shows how to run all tests in Gradle from one package, complete with a set of instructions for different scenarios.
If we have a Gradle task of type
Test we can use a filter on the command line when we invoke the task. We define a filter using the
--tests option. If, for example, we want to run all tests from a single package, we must define the package name as value for the
--tests option. It is good to define the filter between quotes, so it is interpreted as is, without any shell interference.
Read more at DZone.