I wrote the script on a Friday afternoon because I was procrastinating on something worse.
It was maybe thirty lines. Walk the spec directory, parse each test file, count how many assertion calls appear inside each test body. I wasn't auditing anything. I was curious, in the idle way you get curious at 4pm on a Friday, and I expected to look at the output for ten seconds and close it.
Of our 400 specs, 61 contained no assertion at all.
Not a weak assertion. Not a bad one. Zero. Sixty-one tests that navigated somewhere, clicked some things, and ended. All of them passing. All of them counted in the number I reported to my manager every sprint.
I sat there for a while.






