I spent a fairly satisfying two days setting up unit and functional
tests for figleaf, my code coverage package. I implemented the tests
using a technique that I gather is called vertical slicing --
I just called it "starting a new phase of a project" before ;). The
idea is that you …
Yesterday for our SoCal Piggies meeting I whipped up something I'd been
thinking about doing for a while: sectioning in figleaf recording. (figleaf is my
package for Python code-coverage analysis.)
It's easier to show than to explain, but briefly, I added two new
functions to figleaf:
I just put the finishing touches on some automated regression tests for
figleaf, my
simple code coverage analysis program. In the process I found a nice
use for nose'syield test constructor.
Briefly, nose lets you write code like this:
def test()
for i in range(0, 10):
yield check_num …