Continuous integration—executing unit test cases in the pipeline
One of the most important steps in any software development methodology is to write automated unit tests to validate the correctness of our code. It is also important that we run these unit tests every time the developer commits new code, to provide test code coverage.
In this recipe, we will learn how to incorporate the process of building the unit tests that we developed in the Developing unit tests for Azure functions with HTTP triggers recipe of Chapter 5, Exploring testing tools for Azure functions.
How to do it…
In this recipe, we are going to add a new task to the pipeline that runs the unit test cases. Perform the following steps:
- Edit the AzureFunctions-CI build definition and add the .NET Core task as shown in Figure 12.22:
Figure 12.22: Azure DevOps—build pipelines—adding a new task
- Once the task is added, change the following attributes of the task:
Display Name...