Testcase not getting executed in maven project using TestNG | Selenium Forum
N
Neha Bhardwaj Posted on 22/06/2019

Maven is installed and build is successful. I am making Maven project with Testng and trying to execute testcase.

If run through Eclipse , gets executed perfectly. But if executed through command prompt using maven -mvn compile and mvn test -build is successful, but the test case is not executed.
Surefire-report is also getting created and shows no test case being executed.

Has anybody faced and solved the similar issue.TIA.


A
Ashish Thakur Replied on 24/06/2019

You can alternatively use ant for running tests.