You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pi...@apache.org on 2014/09/30 18:18:26 UTC
git commit: [flex-tlf] [refs/heads/FlexUnit4TestsTLF] - Make unit
tests runnable from build ant script
Repository: flex-tlf
Updated Branches:
refs/heads/FlexUnit4TestsTLF e31da7b59 -> ec9e095c1
Make unit tests runnable from build ant script
Project: http://git-wip-us.apache.org/repos/asf/flex-tlf/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-tlf/commit/ec9e095c
Tree: http://git-wip-us.apache.org/repos/asf/flex-tlf/tree/ec9e095c
Diff: http://git-wip-us.apache.org/repos/asf/flex-tlf/diff/ec9e095c
Branch: refs/heads/FlexUnit4TestsTLF
Commit: ec9e095c13a7ba12adde0675b769857470cd2805
Parents: e31da7b
Author: piotrz <pi...@gmail.com>
Authored: Tue Sep 30 18:18:06 2014 +0200
Committer: piotrz <pi...@gmail.com>
Committed: Tue Sep 30 18:18:06 2014 +0200
----------------------------------------------------------------------
automation_apps/src/UnitTest/TestDescriptorRunner.mxml | 2 ++
build.xml | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/ec9e095c/automation_apps/src/UnitTest/TestDescriptorRunner.mxml
----------------------------------------------------------------------
diff --git a/automation_apps/src/UnitTest/TestDescriptorRunner.mxml b/automation_apps/src/UnitTest/TestDescriptorRunner.mxml
index 25ef01a..7d7253c 100644
--- a/automation_apps/src/UnitTest/TestDescriptorRunner.mxml
+++ b/automation_apps/src/UnitTest/TestDescriptorRunner.mxml
@@ -20,6 +20,7 @@
xmlns:fx="http://ns.adobe.com/mxml/2009">
<fx:Script>
<![CDATA[
+ import org.flexunit.listeners.CIListener;
import org.flexunit.runner.FlexUnitCore;
import org.flexunit.runner.notification.RunListener;
@@ -31,6 +32,7 @@
core = new FlexUnitCore();
core.addUncaughtErrorListener( systemManager.loaderInfo );
core.addListener(new RunListener());
+ core.addListener(new CIListener());
core.addListener(testRunner);
if (isMinimalTests)
http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/ec9e095c/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 3333986..50784cd 100644
--- a/build.xml
+++ b/build.xml
@@ -353,6 +353,7 @@
<library-path dir="${output.dir}/apps/automation_apps/bin" includes="automation_tests.swc" append="true"/>
<library-path dir="${automation_apps.dir}/libs" includes="flexunit.swc" append="true"/>
<library-path dir="${automation_apps.dir}/libs" includes="flexunit-uilistener.swc" append="true"/>
+ <library-path dir="${automation_apps.dir}/libs" includes="flexunit-cilistener.swc" append="true"/>
<!-- External swcs -->
<library-path dir="${flex.sdk.frameworks}/libs/mx/" includes="mx.swc" append="true"/><!-- for Flex SDK 4.5 -->
@@ -387,6 +388,6 @@
</target>
<target name="flexunnit_tests">
- <flexunit swf="${output.dir}/apps/automation_apps/bin/VellumUnit.swf" timeout="180000" player="flash" toDir="${output.dir}/apps/automation_apps/bin" haltonfailure="false" verbose="true" />
+ <flexunit swf="${output.dir}/apps/automation_apps/bin/VellumUnit.swf" player="flash" toDir="${output.dir}/apps/automation_apps/bin" haltonfailure="false" verbose="true" />
</target>
</project>