Feed on Posts or Comments 06 September 2010

MediaWiki robchurch on 04 Jan 2007 11:34 pm

Testing time

All right, I’ve committed what should be all of the main detection regexes for the FormatDates extension now, so it’s time to devise a test strategy for the code.

Avar’s new TAP-based thing is nice, but isn’t really easy to use with something like this, because a lot of MediaWiki is hideously interdependent – encapsulation is almost a dirty word. Sadly, this applies especially to the Language classes, upon which the DateParser class has a dependence.

I suspect I’ll end up using a light variant of the parser tester to do this…to be honest, the more irritating part’s going to be writing the test cases themselves.

Latest version’s up on the test wiki, as usual.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply