What can static testing discover before executable software exists?
Answer
Reviews and static analysis can expose ambiguous requirements, inconsistent rules, unreachable code, security smells and maintainability problems without running the product. Dynamic testing observes behaviour during execution; the two approaches find different classes of problems.
Strong answer includes
- reviews are testing
- finds defects in work products
- distinguishes execution from analysis
Practical example
A reviewer reads a requirements document before any code is written and spots that 'the system should respond quickly' has no measurable threshold. Flagging this during a static review saves the team from building and then retesting a feature against an undefined performance target.