Apache flex 运行FlexUnit无法获取跟踪的控制台输出
我已经在我的应用程序中设置了FlexUnit,我想用trace调试一个测试,但我不知道如何让FlexUnit跟踪到flashlog文件。这是我在ant中测试任务的一部分,我认为“localtrusted”属性会有所帮助,但似乎没有。在我的日志中,我只得到测试用例,没有测试中的任何跟踪Apache flex 运行FlexUnit无法获取跟踪的控制台输出,apache-flex,ant,flexunit,Apache Flex,Ant,Flexunit,我已经在我的应用程序中设置了FlexUnit,我想用trace调试一个测试,但我不知道如何让FlexUnit跟踪到flashlog文件。这是我在ant中测试任务的一部分,我认为“localtrusted”属性会有所帮助,但似乎没有。在我的日志中,我只得到测试用例,没有测试中的任何跟踪 <flexunit workingDir="${test-output.dir}" toDir="${test-output.module.dir}/output"
<flexunit
workingDir="${test-output.dir}"
toDir="${test-output.module.dir}/output"
verbose="true"
localtrusted="true"
haltonfailure="false">
<source dir="${basedir}/src" />
<source dir="${basedir}/test-src" />
<testSource dir="${basedir}/test-src">
<include name="**/*Test*.as" />
</testSource>
<library dir="${env.CLI_ROOT}/tools" />
</flexunit>
尝试使用库路径,如果您使用调试/info/warn/error/fatal()
而不是跟踪()
,它将输出到控制台
import com.furusystems.logging.slf4as.global.debug
debug("traces!");