Permission to Move Freely
Technique: Keep Tests Excellent
How do microtests become brittle, routinely broken, and generally useless?
Easy.
The same way production code does.
The same way production code does.
Exert maximum effort to keep your microtests short, simple, and clean.
Remember: As you refactor code, refactor tests.Use the same, or better, standards for rolling microtests as you do for code:
- Reveal intention at every opportunity.
- Reduce noise.
- Eliminate duplicate code.
- Eliminate extra code.
(Reading...)
Formatting Hints:
To format... | use this markup: |
---|---|
source code | {source:lang=java|lineNumbers=false}...{source} (Supported languages: java, cpp, csharp, c, python.) |
bold text | __some text__ |
italicized text | ~~some text~~ |
underlined text | @@some text@@ |
a method or class name | ``myMethod(...)`` |