Pages

Tuesday, December 15, 2009

Unit tests? We don't need no stinkin' unit tests!

While packaging ruby-coderay for ALT Linux I ran into problem that tests just fail. Well, this is not really a problem, because we have Ruby 1.9.1 and there may be some obsolete language constructions or encoding issues. In fact, there was two issues that happen only on Ruby 1.9.x - Marshall::dump adds encoding information and output differs from expected. Other seven errors were really funny.

Seven tests fail in CSS section of HTML output. Browsing through revision history brought me to [r332] and [r329], both commited by Upstream Developer around 22 Apr 2009. Patch was obvious and commited in my repo on 29 Jul 2009.

After several months I've decided to update ruby-coderay package. There was another amazing [r372] commited on 18 Oct 2009. And fixed with another obvious patch on 09 Nov 2009.

Since Aplil 2009 only one test was fixed by [r361] on 10 Oct 2009.

Bottom line: test suite for CodeRay project has been broken for almost eight months and nobody gives a fuck. Gosh, I LOVE Free Software!

No comments:

Post a Comment