<div dir="ltr"><div><div><div>Hi list,<br><br></div>I was wondering if you knew a tool that would ensure that tests contain some kind of assertions e.g., an assert statement or a call to a method such as TestCase.assertTrue().<br><br></div>I would love to be able to run something like &quot;py.test --fail-missing-assert&quot; which would fail a test if the user accidentally did &quot;data == expected_data&quot; rather than &quot;assert data == expected_data&quot;.<br><br></div><div>Tests without any assertions are the worst because the number of tests and code coverage grows providing a false sense of satisfaction when really the test would have failed in the first place if a proper assertion was written.<br></div><div><br></div><div>Any thoughts on this?<br></div><div><br></div>Thanks,<br><div><div>-- <br>Alex<div><div><div><div><div>
</div></div></div></div></div></div></div></div>