LURunner
Loose Unit Runner
What is it?
A free (GNU GPLv3 license) open source graphic unit test runner for showing the results of your unit tests.
This project has moved to GitHub – https://github.com/bob-lu/LURunner
Why is it made?
Mainly to speed up your FlexUnit tests compared to the shipped UIRunner. If your unit tests take to long to run you will probably don’t run them as often and then you loose one main advantage of unit testing.
Secondly because the GUI is not excellent. For example the most common task when a test fails, is to see where it fails. To do this you need to re-size columns in the result table to get the name. And the second is the stack trace which is stuffed in a minimal text box.
How is it done?
The main thing is that it doesn’t use any flex components. So you don’t need to load the flex component framework.
Download swc
Source code, swc and the example can be found on GitHub:
https://github.com/bob-lu/LURunner
Example
package
{
import com.boblu.lurunner.LUContainer;
import com.boblu.lurunner.LURunner;
import org.flexunit.runner.FlexUnitCore;
import test.boblu.message.MessageSuite;
import test.boblu.services.ServiceSuite;
/**
* @author Bob Dahlberg
*/
public class Main extends LUContainer
{
protected var _core:FlexUnitCore;
protected var _runner:LURunner;
protected var _allSuites:Array;
override protected function setup():void
{
_allSuites = [ MessageSuite, ServiceSuite ];
_runner = new LURunner();
addChild( _runner );
}
override protected function start():void
{
_core = new FlexUnitCore();
_core.addListener( _runner );
_core.run( _allSuites );
}
}
}
Thanks to
@isotop and @tommislav for feedback and time.
[...] Home AboutLURunner [...]
[...] Home AboutLURunner [...]