Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 647735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:45:18+00:00 2026-05-13T21:45:18+00:00

How can you run AsUnit test runner from Ant? I’m on the Mac OS

  • 0

How can you run AsUnit test runner from Ant?

I’m on the Mac OS so I use:

open -a "flash player" tests.swf

How can I make this cross platform?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:45:18+00:00Added an answer on May 13, 2026 at 9:45 pm

    Here’s a target that will compile the tests into a swf and run them. The tests are run using the exec task. This version uses the open command from the Mac OS.

    For Windows I can only think of using a property set to the complete path to the Flash player exe and using that to run the tests.

    <target name="tests">
    
        <taskdef resource="flexTasks.tasks" classpath="${flextask.jar}" />
    
        <mxmlc file="${test.main}" output="${tests.output}" incremental="true" debug="false" static-link-runtime-shared-libraries="true">
            <source-path path-element="${tests.dir}"/>
            <load-config filename="${flex.config}" />
            <library-path dir="${flex.lib}" append="true">
                <include name="flex.swc" />
            </library-path>
            <library-path dir="${libs.test.dir}" append="true">
                <include name="*.swc" />
            </library-path>
        </mxmlc>
    
        <exec executable="open" os="Mac OS X">
            <arg line='-a "flash player" ${tests.output}' />
        </exec>
    
    </target>
    

    Here’s the properties:

    # Build locations
    src.dir=${basedir}/src/main/actionscript
    package.dir=your/apps/package
    libs.dir=${basedir}/libs
    output.dir=${basedir}/bin
    output.swc=${output.dir}/${project.name.versioned}.swc
    
    # testing
    tests.dir=${basedir}/src/test/actionscript
    tests.output=${output.dir}/${ant.project.name}-tests.swf
    libs.test.dir=${basedir}/src/test/libs
    test.main=test.main=${tests.dir}/${package.dir}/AllTestsRunner.as
    
    docs.dir=${basedir}/docs
    
    # flex resources
    flex.config=${FLEX_HOME}/frameworks/flex-config.xml
    flex.lib=${FLEX_HOME}/frameworks/libs
    flextask.jar=${FLEX_HOME}/ant/lib/flexTasks.jar
    mxmlc.jar=${FLEX_HOME}/lib/mxmlc.jar
    compc.jar=${FLEX_HOME}/lib/compc.jar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can run all tests in a single file with: rake test TEST=path/to/test_file.rb However,
I can run my script just fine from the command line: php test.php and
I can run my app from eclipse but when i try to use adb
I can run tasks as part of our functional tests just fine using this
In Informix I can run SQL statement that use other database: INSERT INTO other_db:mytable
I can run my Java Swing application from Eclipse without problems. But when I
Can a windows service be set to run at a specific time..? Example From
I can run db.repairDatabase() from the mongodb shell but I can't find an example
I can run all my reports from report studio just fine. So its not
I can run the following via the address bar in Firefox just fine: javascript:window.open(http://my.hostname.com/test.php?id=12345,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.