Getting started
At the end of Chapter 6, you saw how easy it is to deploy to Azure directly from Visual Studio. This is fine for testing scenarios and one-off experiments or proofs of concept, but in a production scenario, this one project may be part of a much larger system.
Setting up a series of “gates” (checks) before publishing to production can be advantageous for many reasons. Note that there are many types of release gates. The most common (and important) are Pull Requests (PRs), unit tests, integration tests, and end-to-end tests.
Using tests to ensure code quality
There are many kinds of tests that you might run against your code. Among the most important are the following:
- Unit tests
- Integration tests
- Automated tests
Unit tests cover one section of your code that does one thing. For example, many unit tests have a 1:1 correspondence with methods, but not always. Think functionality rather than code. However, they must run extremely...