package { import org.flexunit.internals.TraceListener; import org.flexunit.runner.IDescription; import org.flexunit.runner.Result; import org.flexunit.runner.notification.Failure; public class FlashSDKListener extends TraceListener { public function FlashSDKListener () { } override public function testRunFinished(result:Result):void { if (result.failureCount) trace("TESTS HAS FAILURES"); trace("ALL TESTS ARE COMPLETED"); super.testRunFinished(result); } override public function testStarted(description:IDescription):void { // trace("TEST STARTED", description.displayName, description.testCount); // super.testStarted(description); } override public function testFailure(failure:Failure):void { trace("TEST FAILED", failure.testHeader, failure.stackTrace); // super.testFailure(failure); } override public function testIgnored(description:IDescription):void { trace("TEST IGNORED", description.displayName, description.testCount); // super.testIgnored(description); } override public function testFinished(description:IDescription):void { // trace("TEST FINISHED", description.displayName, description.testCount); // super.testFinished(description); } } }