TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Jenkins

Run Calculator JUnit tests using Jenkins

JUnit Tutorial

Introduction

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.

Calculator Tests

Sample Calculator Junit tests can be found here:

https://www.testingdocs.com/junit-calculator-test-case-example/

Jenkins

To get started with Jenkins CI :

https://www.testingdocs.com/getting-started-with-jenkins/

Create Maven Project

Create Maven project using quickstart archetype:

https://www.testingdocs.com/create-quickstart-maven-project-in-eclipse-ide/

Configure Maven Project in Jenkins

Launch Jenkins.

Create New Project >> Click on New Item

 

Calculator Tests Jenkins

 

POM.xml

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.

 

Maven Goals

 

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.

 

Console Output

The console output windows displays the build information of the project.

 

Test Result

Click on the Test Result link to view the JUnit test results of the build.

 

Jenkins Tutorials on this website can be found at:

https://www.testingdocs.com/jenkins-tutorial

For more details on the Jenkins CI, visit the official website at:

https://jenkins.io/

Related Posts

Jenkins Cloud Options

Jenkins /

Jenkins Cloud Deployment Offering

Blue Ocean Jenkins Plugin

Jenkins /

Blue Ocean Jenkins Plugin

CiCD pipeline

Jenkins /

Continuous Integration Tools

Jenkins releases

Jenkins /

Jenkins Release lines

Install Jenkins Plugins

Jenkins /

Install Jenkins Plugins

‹ Install Jenkins Plugins› Jenkins Release lines

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version