What Is a Microtest?
Testing in Isolation
A good microtest sets up an Interesting Solo Module and probes the behavior of that
module to determine that it works
the way the programmer wanted it to.It's just one module, which is interesting (worth testing), and works solo (doesn't rely on others).Imagine the mechanics needed if the microtest inspected how the module works inside an application.The application is full of modules, each with various requirements and collaborations and interactions
which need to be set up in the right way at the right time.
Can you see how NOT testing in isolation would be a problem?
(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(...)`` |