Executing xUnit.net tests with Cake

In Chapter 8Creating Continuous Integration Build Processes, in the LoanApplication build script section, we walked through the process of creating and running build steps using the Cake automation build script. Running unit tests and getting the test results and coverage from Visual Studio IDE, Visual Studio Code, or any other suitable IDE for building .NET and .NET Core applications is easier with the assistance of the xUnit console runner and xUnit adapter. However, for the CI process and the build process to be complete and effective, unit test projects should be compiled and executed as part of the build steps.

Get C# and .NET Core Test Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.