Document guide to avoid test pyramid duplication
Description
Martin Fowler suggests the following rules to avoid test duplication:
- If a higher-level test spots an error and there's no lower-level test failing, you need to write a lower-level test
- Push your tests as far down the test pyramid as you can
Let's document a process for:
- Identifying when a higher-level test is capturing something a lower-level test should have
- Creating an issue and resolving
- Removing redundant higher-level tests