TBD
Context
TODO Find a way to define a workable and possible ways to architecture the tests in a large scale webapp.
- Differentiate use cases for Unit tests, Component tests, Integration tests (E2E tests with fixture APIs) and E2E tests.
- How to check if there are enough use cases to ensure a way to predict bugs and errors in the application (code coverage, paths to check) while not having a bloated test suite.
Type of tests
- smoke tests: they cover the "happy paths" of the application. They usually have more value than they seem they have.
- characterization tests: tests created for covering old parts of the code before migrating them into a new syntax and you want to ensure the contract of the functions is still the same. e.g. when the developer migrates a file that uses a deprecated dependency into a new one and you want to check that the functions/methods keep working as they are expected to work.