Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

JUnit Tests are executed via IDE but can't execute via maven job on Jenkins

Open 1 Answers 27 Views
0 1

I have created a Maven project and set it up on Jenkins as a maven build. When I execute mvn clean test, it does not recognize my tests.

Here is test file name:


It has one @Test annotation.

1 Answer

Maven surefire plugin will recognize a test class that has name starting with

Test or TestCase

or ending with


So, rename your class and it will work.
answered by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors