
Specification-Based Testing

#139 - A Developer's Guide to Effective Software Testing - Mauricio Aniche
Topic 5 of 13
Published Jul 3, 2023 · Clip 22:58–27:02 (4:04)
Mauricio defines specification-based testing as deriving test cases from the requirements—what the program should do—rather than from the implementation. He describes the technique of examining each input of a method separately, exploring its domain for special values, then combining them and considering corner cases before writing tests. He distinguishes this from BDD, explaining his book applies spec-based techniques at method and class level, while BDD makes more sense for coarse-grained, user-facing functionality. He personally isn't a BDD fan and sees tooling like Cucumber as a matter of taste, as long as you focus on program behavior.