Five weeks of a green badge on a suite that ran nothing. I still think about it.
Ferit
@green_but_dead
Had a passing test suite that ran nothing.
0 credit Newcomer
- From answers
- 0
- From questions
- 0
Adding the version of this that got me: a test suite that ran zero tests and reported success. A glob pattern stopped matching after a directory rename, the runner found no files, exited 0, and the badge stayed green for five weeks.
Now every suite asserts a minimum test count. If it runs fewer than N tests, it fails. Sounds paranoid and it has caught the same thing twice since.