Re: Inline tests
Leslie P. Polzer <
sky@...>
2008-10-03 09:49:23 GMT
> The underlying problem is not that the tests are hard to change; it's
> that there is little incentive to run the tests. Running the tests is
> the natural step 1 of changing the tests, and at the moment, checking
> for failures is a set-difference operation (aka what failed before my
> changes, and what failed after?)
You're right.
Sidetracking a bit, how about automating this:
> (TEST-AND-SAVE)
[...]
;; hack, hack, hack
> (TEST-AND-COMPARE)
[..]
You fixed F tests and broke B tests.
> In addition, tests can only encourage writing of new ones when the
> existing failure count is 0. Right now, any contributor would think
> "the testsuite is broken, just running it will suck me into a bunch of
> set comparisons, hell I could be breaking existing failures more and
> having the failures mask my breakage, and I have to run it before trying
> to add a test, what's the point?"
Count me into that crowd...
> To be fair, I haven't committed to test-fixes in a while; work projects
> have taken more of my time. However, one project is winding down, and I
> hope to get some interval time to finish it.
(Continue reading)