Posted On: Monday, February 11th, 2008 (Open Source, RBUnit)
Posted by: Paul Lefebvre

I am pleased to announce that RBUnit 3.0 is now available. This new version makes use of Introspection, which was added to REALbasic 2008 Release 1. Introspection is the ability for a program to find out information about itself while it is running. This is not something you need every day, but it is very handy for framework-type code like RBUnit.

With introspection you no longer have to specify the names of your test methods in the RunTests event. Now you just create all your test methods in a TestFixture subclass, make sure they end in “Test” and then instantiate your test class in the StartTests class. Using introspection, RBUnit now asks your class for all the methods on it and runs the ones that end in “Test”. Easy as pie.

RBUnit also now has better exception handling. If your test method crashes with an exception, RBUnit will catch the exception and tell you what it was (also thanks to introspection).

RBUnit has been open-source for about a year now but starting with this release I’ve set up a Google Code page for RBUnit (rbunit.googlecode.com). So now anyone can easily pull down the source from the Subversion repository. Google Code also has a nice wiki, which is where all the documentation is now stored. And for those not inclined to use Subversion, you can also just download RBUnit in ZIP format.

And if you’re interesting in submitting changes (to either the docs or the code), just let me know and I’ll add you to the project.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

This entry was posted on Monday, February 11th, 2008 at 9:28 pm and is filed under Open Source, RBUnit. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply