News for hackers. Stuff that matters.
Re:Don’t mock what you don’t own by aidenn0 on Wednesday June 22, 2022 @01:04PM (#31838713)
Ultimately the two goals are that changes that don't break the product to pass all the tests and changes that do break the product to fail at least one test. If you remember those two goals, you will go far.

All rules should be in service of the above. I don't know that there is a "most people agree with this" set of rules, but if you read any source on how to test, think about how each rule affects the two goals. Senior developers tend to have developed an instinct for "things like this have failed one of the two rules" but it is hard to codify that instinct into rules.

There are no comments on this comment yet.