Running FlexUnit unable to get console output for trace

782 views Asked by At

I've set up FlexUnit in my app, I want to debug a test using trace, but im not sure how to get flexunit to traceto the flashlog file. Here's part of my test task in ant, I thought the 'localtrusted' property would help, but it doesnt seem to. In my logs I get the testcases only, none of my traces which are inside my tests.

<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>
1

There are 1 answers

0
Tom coxen On BEST ANSWER

Try DConsole in your library path and it will output to the console if you use debug/info/warn/error/fatal() instead of trace().

import com.furusystems.logging.slf4as.global.debug
debug("traces!");