Maven POM.xml



Text : 

<project xmlns=”; xmlns:xsi=”; xsi:schemaLocation=””&gt; <modelVersion>4.0.0</modelVersion>
<groupId>TestConfig</groupId> <artifactId>TestConfig</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging>
<name>TestConfig</name> <url></url&gt;
<properties> <>UTF-8</> </properties>

<build> <plugins> <!– Compiler plug-in –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${jdk.level}</source> <target>${jdk.level}</target> </configuration> </plugin> <!– Below plug-in is used to execute tests –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <configuration> <suiteXmlFiles> <!– TestNG suite XML files –> <suiteXmlFile>testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build>


<dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.9.10</version> <scope>compile</scope> </dependency> </dependencies></project>

Configure Cucumber with Maven

What is Cucumber JUnit Runner?

It is important to recognize what Junit is, earlier than we start our discussion for Cucumber JUnit Runner. JUnit is an open source unit trying out framework for the Java programming language. JUnit has been crucial in the development of test-driven development, and is one of a family of unit testing frameworks, that is together referred to as xUnit that originated with SUnit.Read More »