Run Calculator JUnit tests using Jenkins
In this post, we will learn how to run Calculator JUnit tests using Jenkins CI. Lets build a Maven project with Calculator tests and configure the project in Jenkins CI.
Sample Calculator Junit tests can be found here:
To get started with Jenkins CI :
Create Maven Project
Create Maven project using quickstart archetype:
Configure Maven Project in Jenkins
Create New Project >> Click on New Item
Configure the project details.
Specify pom.xml in the project. Specify the Maven goals for the build like clean install
Click on the Save button.
Build the Project
Once your are done with the configuration, click on the Build now link to build the project. Alternatively, you can schedule the build project.
The console output windows displays the build information of the project.
Click on the Test Result link to view the JUnit test results of the build.
Jenkins Tutorials on this website can be found at:
For more details on the Jenkins CI, visit the official website at: