Integrating Cucumber with Maven
Maven has a lot of advantages over other build tools, such as dependency management, lots of plugins and the convenience of running integration tests. So let's also integrate our framework with Maven. Maven will allow our test cases to be run in different flavors, such as from the Terminal, integrating with Jenkins, and parallel execution.
So how do we integrate with Maven? Let's find out in the next section.
Getting ready
I am assuming that we know the basics of Maven (the basics of Maven are out of the scope of this book). Follow the upcoming instructions to install Maven on your system and to create a sample Maven project.
- We need to install Maven on our system first. So, follow instructions mentioned on the following blogs:
For Windows:
http://www.mkyong.com/maven/how-to-install-maven-in-windows/
For Mac:
- We can also install the Maven Eclipse plugin by following the instructions mentioned on this...