Maven | Selenium Forum
S
Satish Posted on 13/03/2020

Hi I have 4 test cases that needs to be executed and when I run the command mvc test, I am not seeing the test cases run as 4 instead it is showing as zero
I am attaching screenshot of pom and also attached pom

can any one please help regarding this


S
Satish Replied on 13/03/2020

please find attached screenshot in cmd


A
Ashish Thakur Replied on 16/03/2020

You need to configure maven pom.xml for picking testng.xml.

See below for reference

				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.22.1</version>
					<configuration>
						<suiteXmlFiles>
							<suiteXmlFile>testng.xml</suiteXmlFile>
						</suiteXmlFiles>
					</configuration>
				</plugin>