Considering that exists the following packages and classes in
com.something.one AlphaTest BetaTest DeltaTest com.something.one.more OmicronTest ZuluTest
With the following command:
./gradlew :module-name:test --tests "com.something.one*"
com.something.one.more packages were executed.
Until here it is expected.
But, what if is need it to test only the
com.something.one package and not the
I tried with:
./gradlew :module-name:test --tests "com.something.one.*" // observe it ends now with .*
But same behaviour as the first command, so
one.* are practically the same.
- How to test a specific package but ignoring/without the sub-package(s)?
I have already read:
But ‘seems’ is not possible. The option to change the sub-package name to other different than the parent package is not always an option.
Extra Question: Does exist an explicit difference for some scenario(s) about
one.*? Or just is practically the same? - just curious when would be mandatory apply an approach over the other