8 Running Automated Tests with Jenkins

 

This chapter covers

  • Implementing CI pipelines for Python, Golang, Node.JS & Angular-based services.
  • Running pre-integration tests and automated UI testing with Headless Chrome.
  • Executing SonarQube static code analysis within Jenkins pipelines.
  • Running Unit Tests inside a Docker container and code coverage reports publishing.
  • Integrating dependency checks in Jenkins pipeline and injecting security in DevOps.

In the previous chapter, we learned how to set up multibranch pipeline jobs for containerized microservices and continuously triggering Jenkins upon push events with webhooks. In this chapter, we will run automated tests within the CI pipeline. The current CI workflow stages can be summarized in the following schema:

Figure 8.1. The various tests stages will be covered in this chapter

8.1    Running Unit Tests inside Docker Containers

 
 
 

8.2    Automating Code Linters Integration with Jenkins

 
 
 
 

8.3    Generating Code Coverage Reports

 
 
 
 

8.4    Injecting Security in CI Pipeline

 
 
 

8.5    Running Parallel Tests with Jenkins

 
 
 

8.6    Improving Quality with Code Analysis

 
 
 
 

8.7    Running Mocked Database Tests

 
 
 
 

8.8    Generating HTML Coverage Reports

 
 

8.9    Automating UI testing with Headless Chrome

 

8.10  Integrating SonarQube Scanner with Jenkins

 
 
 
 

8.11  Summary

 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest