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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 325k
  • Answers 325k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This one seems to be doing what you are looking… May 14, 2026 at 1:31 am
  • Editorial Team
    Editorial Team added an answer If you only have "123456789+987654321" as the input and want… May 14, 2026 at 1:31 am
  • Editorial Team
    Editorial Team added an answer 32 bits (4 bytes) really can be used to store… May 14, 2026 at 1:31 am

Related Questions

How can you run the following script in generating docs by PHPdoc? #1 sudo
How can you run the following in Grep? grep TODO * grep TODO */*
How can you create a temporary FIFO (named pipe) in Python? This should work:
I have the following system variable in .zshrc manuals='/usr/share/man/man<1-9>' I run unsuccessfully zgrep -c
I have a copy in Screen's clipboard which contains the word Masi aften. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.