The Automation guideline
When we say automation, we mean CI. CI has a dedicated chapter in this book, Chapter 11, Implementing Continuous Integration with GitHub Actions, so we won’t go into the details here.
This guideline is about realizing that the unit tests will run on other platforms than your local development machine. So, how do you make sure your unit tests are ready for automation?
CI automation from day 1
Agile teams dedicate the first sprint to setting up the environment, including the CI pipeline. This is usually called sprint or iteration zero. If CI is set up from day 1 to listen to source control, there is less chance it is omitted or a CI-incompatible test is introduced.
Implement CI from the start of the project.
Platform-independent
.NET is multi-platform and the trend nowadays is to use Linux servers to run CI pipelines. Also, the developer dev machine can be Windows, macOS, or Linux.
Make sure your code does not rely on any OS-specific...