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?

1 Answer 1

4

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' 
Sign up to request clarification or add additional context in comments.

2 Comments

This one works for me : mvn test -Dtest="de.mypackage.**" Thank you! @Oboe
The first is for a specific package, the second and third are for sub-packages

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.