Apache flex 如何获得JUnit格式的FlexUnit输出?
我正在设置并希望以JUnit格式捕获结果,以便将它们拉入HudsonApache flex 如何获得JUnit格式的FlexUnit输出?,apache-flex,junit,continuous-integration,hudson,flexunit,Apache Flex,Junit,Continuous Integration,Hudson,Flexunit,我正在设置并希望以JUnit格式捕获结果,以便将它们拉入Hudson 我的选择是什么?我使用ANT生成JUnit风格的FlexUnit报告。我以前没有使用过Make,因此我无法直接帮助您了解它的语法。但是,如果有帮助,我的项目的ANT构建文件有以下问题: <target name="test"> <echo>Executing FlexUnit tests...</echo> <!-- Execute TestRunne
我的选择是什么?我使用ANT生成JUnit风格的FlexUnit报告。我以前没有使用过Make,因此我无法直接帮助您了解它的语法。但是,如果有帮助,我的项目的ANT构建文件有以下问题:
<target name="test">
<echo>Executing FlexUnit tests...</echo>
<!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
<flexunit
workingDir="${bin.loc}"
toDir="${report.loc}"
haltonfailure="false"
verbose="true"
localTrusted="true">
<source dir="${main.src.loc}" />
<testSource dir="${test.src.loc}">
<include name="**/*Test.as" />
</testSource>
<library dir="${lib.loc}"/>
</flexunit>
<echo>Testing Complete</echo>
<echo>Generating test reports...</echo>
<!-- Generate readable JUnit-style reports -->
<junitreport todir="${report.loc}">
<fileset dir="${report.loc}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${report.loc}/html" />
</junitreport>
<copy todir="./test-reports">
<fileset dir="${report.loc}"/>
</copy>
<echo>Generation complete</echo>
</target>
正在执行FlexUnit测试。。。
测试完成
正在生成测试报告。。。
生成完成
如您所见,我使用flexUnitTasks运行测试,使用junitreport任务生成报告。您使用ANT还是Maven?实际上,我们使用Make。我们构建了自己的构建系统来处理FlexBuilder中的限制。