Book Image

DevOps: Continuous Delivery, Integration, and Deployment with DevOps

By : Sricharan Vadapalli
Book Image

DevOps: Continuous Delivery, Integration, and Deployment with DevOps

By: Sricharan Vadapalli

Overview of this book

DevOps is the most widely used software engineering culture and practice that aim sat software development and operation. Continuous integration is a cornerstone technique of DevOps that merges software code updates from developers into a shared central mainline. This book takes a practical approach and covers the tools and strategies of DevOps. It starts with familiarizing you with DevOps framework and then shows how toper form continuous delivery, integration, and deployment with DevOps. You will explore DevOps process maturity frameworks and progression models with checklist templates for each phase of DevOps. You will also be familiar with agile terminology, methodology, and the benefits accrued by an organization by adopting it. You will also get acquainted with popular tools such as Git, Jenkins ,Maven, Gerrit, Nexus, Selenium, and so on.You will learn configuration, automation, and the implementation of infrastructure automation (Infrastructure as Code) with tools such as Chef and Ansible. This book is ideal for engineers, architects, and developers, who wish to learn the core strategies of DevOps. This book is embedded with useful assessments that will help you revise the concepts you have learned in this book. This book is repurposed for this specific learning experience from material from Packt's Hands-on DevOps by Sricharan Vadapalli.
Table of Contents (8 chapters)

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...