3

I have difficulties to run all tests from a package with mvn command. I have tried solution recommended on stackoverflow: mvn '-Dtest=de.mypackage.*Test' test but with no success.

Everything is fine with executing specific class or tests but I don't have success with running all tests from the package. Any suggestions?

Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
johnnycode
  • 53
  • 5

1 Answers1

2

Try with:

mvn test -Dtest="de.mypackage.*Test"

or

mvn test -Dtest="de.mypackage.**"

If you want to include subpackages:

mvn test '-Dtest=de.mypackage.**.*Test'
Oboe
  • 2,643
  • 2
  • 9
  • 17