qa-of-code-guidance
qa-of-code-guidance copied to clipboard
Expand testing chapter
Relates to #29
Links to #116
Links to #128
Provisional headings:
- Write tests as code
- Structure test files to match code structure
- Run tests against all code changes
- Write reproducible tests
- Use minimal and realistic test cases
- Test that new logic is correct (unit tests)
- Test that different parts of the code interact correctly (integration tests)
- Test that the whole system works (end to end tests)
- Test that user needs are met (user acceptance tests)
- Minimise repetition in test code (fixtures and parameterised tests)
- Write tests before writing logic (TDD)
- Write tests to ensure that bugs are fixed
Should mention in intro that testing assumes that code is packaged