12.05.07
Posted in Programming
at 8:39 pm
I’m always having to explain why line coverage is misleading. This is probably the best, most obvious example of why.
See, 100% coverage!

So let’s reformat some code, you know, just ‘cuz we prefer do … end rather than curly braces.

Oops.
Know what your tests do, people, don’t just look for the nifty green bar from rcov.
Permalink
12.03.07
Posted in Programming
at 10:58 pm
I really thought I would hate using autotest. Then one day I kinda got tired of using command-r to run the test file I was editing. Well, truthfully it was having to switch back to the test file when I was editing the actual code itself.
Just now I realized how freakin’ smart autotest manages to make itself. I changed a fixture yml file and went over to the autotest window to kick it, assuming it wouldn’t run all the tests that use that fixture. Nope. It was happily running all the ones that depend on it. Freakin’ magic.
Now that I get annoyed when autotest isn’t running, I know I’m officially a convert.
Permalink