Testing Your Code
Testing code is an overloaded term when it comes to development. It can refer to several concepts, such as load testing, unit tests, or integration testing, just to name a few. All testing concepts are important for developers to understand regarding the Software Development Life Cycle (SDLC). Each has its purpose and is equally important to provide stability and confidence, and even provide documentation.
In this chapter, we’re going to cover the following main topics:
- Understanding testing concepts
- Best approaches for testing
- Testing Entity Framework Core
In the first section, we’ll cover the basic concepts of testing, including unit, integration, regression, load, system, and UI tests.
Next, we’ll review some best approaches when writing solid tests for software, including why tests are necessary, how many unit tests are required, using the Arrange, Act, Assert (AAA) technique when writing unit tests, why unit test...