26 May 2012 00:31
branch coverage for ternary/guard/default
Jason Keene <jasonkeene <at> gmail.com>
2012-05-25 22:31:43 GMT
2012-05-25 22:31:43 GMT
Hello,
Is there a tool that can do branch coverage testing of ternary/guard/default expressions. Eg:
'happy path' if mostly_true() else 1/0
mostly_true() or 1/0
mostly_false() and 1/0
mostly_true() or 1/0
mostly_false() and 1/0
So if the test suite doesn't hit the 1/0's then it will indicate partial coverage. I'm new to branch coverage testing and testing python in general so sorry if this is a newb question.
Jason
_______________________________________________ testing-in-python mailing list testing-in-python <at> lists.idyll.org http://lists.idyll.org/listinfo/testing-in-python
RSS Feed