Design build automation

Alberto De Natale
9 min readSep 13, 2021

In this post, I will share my study notes that I took while preparing for the exam Azure AZ400 “Design a failure prediction strategy”.

Integrate the build pipeline with external tools (e.g., Dependency and security scanning, Code coverage)

Code Coverage

Code coverage is a measure of how many lines in a codebase are on the execution path of some automated test.

Code coverage is important as it gives an idea of what good enough is for automated tests.

To have a nice summary of how tests have performed in a build, Azure DevOps pipelines provide the publishTestResults flag.

This adds a tab in a build summary.

A widget called “Test Result Trends” is available and distributed by Microsoft.

To implement code coverage in a build the following steps are needed:

  • Coverlet computes the code coverage and produces and XML
  • Cobertura process the XML and computes metrics
  • Convert the report in a human-readable format using…

--

--

Alberto De Natale

Alberto De Natale is a passionate tech-enthusiast software developer.