Adding regression tests to rcov
I just began to eat my own dog food, applying rcov to its own regression tests. The coverage figure is still pathetic, but at least it's going up: rcov had been essentially untested (or only tested manually, which amounts to about the same) for way too long time. The main reason was bad laziness, and the self-justification that it's not easy to test code that relies on set_trace_func. Which was of course to a large extent false.
So here I am, adding regression tests semi-automatically with my xmp filter:
I now feel much more confident hacking rcov, and I finally got around to refactoring a bit. 0.4.0 is surely going to be quite cleaner and more featureful that 0.3.0.
Referer
- 62 http://www.oreillynet.com/ruby
- 60 http://www.oreillynet.com/ruby/blog/2006/05/eating_your_own_dogfood_1.html
- 39 http://www.oreillynet.com/ruby/blog/index.xml
- 16 http://www.oreillynet.com/ruby/blog/news
- 14 http://www.artima.com/forums/flat.jsp?forum=123&thread=160723
- 12 http://www.oreillynet.com/ruby/blog/2006/05
- 6 http://www.oreillynet.com/ruby/blog
- 5 http://www.artima.com/buzz/community.jsp?forum=123
- 5 http://planetruby.0x42.net
- 2 http://rubycorner.com
Keyword(s):[blog] [frontpage] [ruby] [rcov] [regression] [test] [subpar]
References: