DEV Community

Discussion on: Testing Doing Harm

Collapse
 
jessekphillips profile image
Jesse Phillips

Your tests ideally should be considered immutable, if functionality changes then you no lo longer need that test and a new one created.

Now if you are doing this maybe you should not because that would be a change to the api contract and should get appropriate depreciation and tests should continue to pass.

That said being in QA I have not dived into writing tests at the unit level. I do isolated integration testing. I don't have a lot of say on the architecture and since I think curtain testability architectures can be harmful to readability don't think that is always the correct level to test at.