Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
DevOps: Continuous Delivery, Integration, and Deployment with DevOps

You're reading from   DevOps: Continuous Delivery, Integration, and Deployment with DevOps Dive into the core DevOps strategies

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781789132991
Length 134 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Sricharan Vadapalli Sricharan Vadapalli
Author Profile Icon Sricharan Vadapalli
Sricharan Vadapalli
Arrow right icon
View More author details
Toc

Testing with Jenkins


Jenkins provides many out-of-the-box functionalities and plugins for testing. The site https://wiki.jenkins.io/display/JENKINS/xUnit+Plugin provides the plugins:

A list of available testing plugins is shown as follows:

  • JUnit itself

  • AUnit

  • MSTest (imported from MSTest Plugin)

  • NUnit (imported from NUnit Plugin)

  • UnitTest++

  • Boost Test Library

  • PHPUnit

  • Free Pascal Unit

  • CppUnit

  • MbUnit

  • Google test

  • EmbUnit

  • gtester/glib

  • QTestLib

Setting up Unit Testing

Let's perform the following steps to set up unit testing:

  1. Pick up the project we have set up:

  2. Choose build option:

  3. Choose an Advanced option:

  4. Enter the location of build.xml:

  5. Select the option of post-build option and choose Publish JUnit test result report:

  6. In the test reports.xml, enter the reports created a folder in our project so that Jenkins picks the resulting XML files produced by running of the JUnit test cases:

We can select the build and drill-down to the test results.

Automated Test Suite

Continuous integration is the process of verifying a build...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime