Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
246 views
by Expert (572 points)

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:

validateDB.java

It has one @Test annotation.

1 Answer

0 like 0 dislike
by
Maven surefire plugin will recognize a test class that has name starting with

Test or TestCase

or ending with

Test

So, rename your class and it will work.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...