Expected/Actual values in test runner
Hey,
I've added public test functions to my classes like:
[Test]
public function basicTest():void
{
Assert.assertEquals("Test is 5 == 5", 5, 5);
}
and a test suite takes this class as a variable.
[Suite]
[RunWith("org.flexunit.runners.Suite")]
public class ModulesTestSuite {
public var t1:MyClass;
}
I use this mxml to run the tests:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="runMe()" xmlns:flexUnitUIRunner="http://www.adobe.com/2009/flexUnitUIRunner"
styleName="flexUnitApplication" >
<mx:Script>
<![CDATA[
import org.flexunit.runner.notification.async.XMLListener;
import org.flexunit.listeners.UIListener;
import org.flexunit.runner.Request;
import org.flexunit.runner.FlexUnitCore;
private var core:FlexUnitCore;
public function runMe():void {
core = new FlexUnitCore();
core.addListener( new UIListener( uiListener ));
core.run(ModulesTestSuite);
......
But, when the test runner runs the tests, it categorized them as empty tests and shows blank for expected and actual values. Whereas clearly i've entered '5' for both. The tests complete successfully though.
Could you please elaborate on what are empty tests and how to pass expected value/ actual value data that will display in the test runner UI.
Thanks,
Prannay