Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> This led to chronic misuse around the code (I found 4-5 tests that simply forgot to wrap it in an assert effectively rendering the test completely worthless).

Yes, I've been bitten by that too -- it's too easy to forget the "assert". This morning it occurred to me that I could write a pylint (static analysis) checker to catch that, so I've done just that: https://github.com/stb-tester/stb-tester/commit/5e5bdbb



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: