Maven | Selenium Forum
10% Off Learning Discount Avail now

Maven

S
Satish Post 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 Reply on 13/03/2020

please find attached screenshot in cmd

S

Instructor

Support Team Reply 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>