3 ms·
Why not BDD style in unit tests though? Our team adopted it and I really like it over triple A.
by zoover2020 6y ago
Why not BDD style in unit tests though? Our team adopted it and I really like it over triple A.
- UK-Al05 6y agoI don't really understand his argument against it.
- lmm 6y agoI've found it just obscures what the test is doing. If I'm looking at a test that failed, I want to see the code that caused the failure, as plainly as possible; I'm quite capable of reading code (indeed I find code is better at communicating clearly than English is), so I'd rather see a minimum of ceremony than some misguided effort at making tests more readable for imaginary business users.