Can i avoid needing to manually enumerate all TestCases in a TestRunner for an ant build?

flexunit gurus,
i've been experimenting with the FlexUnit4SampleCIProject as part of following the instructions for ant builds at http://docs.flexunit.org/index.php?title=Ant_Task
this sample project utilizes a TestRunner.mxml file that manually enumerates every TestCase that should be run as part of the tests.  e.g. after i modified TestRunner.mxml to test my locally developed classes, a snippet looks like this:
                var core : FlexUnitCore = new FlexUnitCore();
                core.run(MathUtilTest, StringUtilTest);
the ant build then invokes that TestRunner as part of the build:
        <!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
        <flexunit swf="${bin.loc}/TestRunner.swf"
            toDir="${report.loc}"
            haltonfailure="false"
            headless="false"
            verbose="true"
            localTrusted="true" />
the associated maven build for this project does not require a TestRunner.mxml.  the following snippets from the configuration of the flexmojos plugin in the pom.xml allows for the TestCases to be run without needing to manually enumerate them ahead of time::
               <includeTestFiles>
                  <includeTestFile>*Test.as</includeTestFile>
               </includeTestFiles>
Flash Builder 4 now supports a model like flexmojos - I can simply right click a project or folder and select Execute FlexUnit Tests and all the tests are run, without needing a TestRunner.mxml.  Flash Builder appears to accomplish this by dynamically generating (and then compiling and executing) 2 mxml files based on the FlexUnit tests found in the project/folder.  In Flex Builder 3 days, I had to manually maintain a TestRunner.mxml, which was error prone and cumbersome.
my question is whether there is support in an ant build for running all *Test.as files without needing an associated TestRunner.mxml.  if so, could you post an example on how to accomplish this?  i suppose i could create a custom ant task that dynamically generates a mxml file after searching the file system for *Test.as files (similar to what Flash Builder 4 does), but since this seems like such a common need i'm hoping it is (or can be) provided as part of FlexUnit's ant tasks.
thanks.
-mike

they aren't there yet, but...
if you want to have a little fun, this code is already in our github master
<flexunit workingDir="${bin.loc}" toDir="${report.loc}"
haltonfailure="false" verbose="true" localTrusted="true">
   <testSource dir="${main.src.loc}" />
   <testSource dir="${test.src.loc}">
      <include name="**/*Test.as" />
   </testSource>
   <library dir="${lib.loc}" />
</flexunit>
documentation and being 'official' are not far off, but due to some logisitcs I can't give you a firm date just yet,
mike

Similar Messages

  • I recently had a kernel panic in which I think my hard drive only had so much space left after I ran a bunch of drivers I thought I needed. I uninstalled all and moved files. For some odd reason I'm not getting sound of of my hdtv/monitor.HELP?

    I recently had a kernel panic in which I think my hard drive only had so much space left after I ran a bunch of drivers I thought I needed. I uninstalled all and moved files. For some odd reason I'm not getting sound of of my hdtv/monitor.HELP? I uninstalled all the drives and apps I download. I moived files either to trash if not needed, and others to other external drives. I went into disk utility and did a repair disk permission and verify disk. Clean out junk files. Now my hdtv/monitor does not give me any sound, nor does my mac mini. Can someone please tell me what to do?

    What drivers?

  • My laptop iCloud calendar did not adjust to daylight savings time.  Do I need to manually move all the appointments are is there somewher I can do this.  All I found was the time zone adjustmant and that didn't help

    when daylight saving time started last Sunday, my iCloud appointments on my laptop moved up one hour to 9 a.m.  They're supposed to be at 10 a.m. which is what's showing on my iPhone.  Is there an adjustment for this somewhere?  I tried the time zone adjustment, nothing there was helpful.

    Please please help me, if you know how.

  • Can one avoid names to be listed in packaged applications (issue tracker, for example)?

    I've installed the packaged app "Issue tracker" in a workspace, but now have a problem with German's law (and maybe others), which does not allow people to make reports that explicitely mention names of employees, except if you are their manager.
    So the issue tracker's reports, which can be used by anybody and display assignees' names, are not allowed by German's law !
    I guess that all packaged apps have the same users control mechanism. If so, this issue is not specific to the issue tracker. Is that right?
    To make the issue tracker compliant with German's law, one should be able to hide names or ideally to make them only visible by the employee's management.
    Hide name would imply:
    - Remove the updaters' name in the projects/issues
    - Remove assignees' name in the projects/issues/reports
    I guess this could be done via a plugin "display names" in the "build options".
    Make names only visible to managers would imply:
    - Assign a manager to each user
    - Adapt the display depending on the identity of the user
    Does this make sense? If so, I guess I should add an entry in Oracle Application Express Feature Requests, right?
    TIA for your feedback,
    Stefane

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • I can't find an option to 'Close all tab's on exit' for safari 5.1

    I might be missing something simple. can't find the solution anywhere on the web.

    This is due to the Resume feature in Lion. Safari will keep your windows and tabs for next time. You can press Command+Option+Q on your keyboard, which will close Safari and discard all tabs.

  • HT4740 How can I avoid or solve the problem of Final Cut Pro crashes when trying to Show Events Library?

    When I try to Show Events Library in Final Cut Pro, it crashes each time. Please tell me how do I work around this problem?

    Try creating a new (temporary) folder and putting all your events in there - then launch FCP X.
    If you can open the Browser, then it's possible one or more of the clips in one of your events is corrupt. Close the app and move the events back into their original places one by one (re-starting FCP X each time). This will help you find the event which has the corrupt file in it.
    If isolating the events has no effect, I suggest you trash your preferences.
    Unexplained faults like this can often be fixed by clearing out FCP X's preferences (for some reason, they get knotted up from time to time).
    Download Digital Rebellion's Preference Manager (free, simple to use, and perfectly safe, both to download and use).
    http://www.digitalrebellion.com/prefman/
    With Preference Manager, you can backup the Prefs when FCP X (or any of the Apple Professional Applications) are working normally. Then when either of the applications are acting strangely, Trash the Preferences, then Restore from your backups (just a mouse-click).
    If you trash the prefs and don't restore them, you will need to manually restore all your FCP X settings again, so it's a great idea to backup Preferences from time to time when FCP X is working well, then your backups are up to date.
    Doesn't fix every problem, but it fixes a lot.
    Andy

  • Need Help with boot camp install, keep getting message can not install need

    Hi Folks,
    I keep getting a message that the boot camp assistant can not install needs firmware update. All updates are currently installed. I have tried all available updates and hey ell me the computer doesn't need them????
    Any help that you may provide is greatly appreciated.
    Jack
    P.S. The computer is an Imac early 2006 1.83 gb.
    Machine Name: iMac
    Machine Model: iMac4,1
    CPU Type: Intel Core Duo
    Number Of Cores: 2
    CPU Speed: 1.83 GHz
    L2 Cache (shared): 2 MB
    Memory: 1 GB
    Bus Speed: 667 MHz
    Boot ROM Version: IM41.0039.B00
    Serial Number: W86220MSU2N
    SMC Version: 1.1f5

    You do not have the firmware update installed. You only have the SMC firmware update. Boot Camp requires this firmware update.

  • I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?

    I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?

    Hello Michael,
    Thank you for your response.  My operating system is XP.  When I try to open a pfd document I just get a series of letters and symbols in a dialog box.  The top of the box says "select the encoding that makes your document readable".  I can choose Windows, MS-Dos, or other (there is a long list to choose from).  None seem to make a difference.  If I save the document to my desk top I can right click on it and choose an option "Open with  AdobeReader 9" and it opens fine.
    Thank you,
    Rick 
    New Edge Technologies
    6525 Peninsula Dr.
    Traverse City, MI 49686
    231.620.2521
    231.941.1284 (fax)
    [email protected]
    Date: Wed, 8 Jul 2009 06:22:51 -0600
    From: [email protected]
    To: [email protected]
    Subject: I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?
    Hello:
    What operating system does your computer use? What happens when you attempt to open a PDF document rather than saving it first? Please include any/all error messages. Also, have you tried opening documents from other locations or just one in particular?
    Thanks,
         Michael
    >

  • I need user manuals

    hi friends i need user manuals of all linksys products , specially of routers if anyone any have manuals private message me or if u have any web link please reply me mahendra
    (Mod Note: Removed Email address.)
    Message Edited by daikunzeon on 02-14-2008 05:38 AM

    I agree with the sentiment of this request.
    Why aren't the full user guides available for download from this site?
    e.g. the PDF manual that came on the CD with my WRT54GSv7 is over 12MB, but the v7 user guide available for download here on linksys.com is only about 4.5MB.
    If people misplace their CDs, Linksys is driving them to black market sources that probably would not even exist if Linksys made the full manuals available for download.

  • The manual of all keys shortcut in JDeveloper.

    Hi guys,
    I need understand which are keys shortcut to Developer10g. for example Ctrl + F5 = Add Watch Ctrl + F9 = Make Project
    I need the manual of all keys shortcut
    Att, Jairo

    Hi,
    Those are all configurable, check Tools --> Preferences... --> Accelerators
    Regards,
    ~ Simon

  • How can I avoid the writting of the field TRDAT (table usr02) when I logon?

    Hi guys!
    The first days of the month we have a high number or RFC processes with a generic user wich access to system at the same time from a remote aplication. This causes a lot of performance problems because of the update of the field TRDAT in table usr02, where the systen registers the last time that the user log on.
    Can we avoid the writting of the field TRDAT in table usr02 for a specific user?
    Thank you very much in advanced.
    Edorta.

    Hello Edorta,
    I agree with Juan that this is not a very good idea. Moreover this is not just some code based changed but is related to SAP kernel.
    I would rather look at other system profile paramters like:
    rdisp/rfc_max_login
    rdisp/rfc_min_wait_dia_wp
    rdisp/rfc_max_wait_time
    rdisp/rfc_use_quotas
    to control the performance.
    Regards.
    Ruchit.

  • HT4528 My iphone is telling me I need to do a system restore and wont restart. Screen shows itunes logo and that is it. If I do this how can i avoid losing all my pictures videos etc?

    my i phone is telling me I need to do a restore. Screen shows itunes logo and thats it, even after turning off and on again.
    if  do this how can I avoid losing all my pictures videos etc?

    Pictures/Videos in your camera roll? If so, & not backed up or imported to your computer, they are gone. There's no supported way to recover them now.

  • I've just installed mountain lion and my files are all out of their previous folders. Can I set them back or do I need to manually put them back in order??

    I've just installed mountain lion and my files are all out of their previous folders. Can I set them back or do I need to manually put them back in order??

    Hi Thomas,
    Thanks for the response.  So, after the computer did it's restart thing after installing I went into finder where I usually have everything come up including my Macintosh HD folder and all it's folders and files.. Anyway it was this that hadn't come up and all the files were listed under All My Files and out of all their folders.  I totally switched the computer off after posted the problem and now having switched it back on I see that it's all there and in it's proper files. 

  • Labview ignores all but 1 Daq Assistant, how can I avoid this?

    When I am putting together my block diagram, I use the DAQ Assistant to orchestrate everything.  Then when I go to create another DAQ Assistant instance, LabVIEW seems to ignore the first one.  It appears as though I can only use one DAQ Assistant at a time in my VIs, is this the case?  I am a bit of a novice, is there an easy way to avoid this, or change the orginal DAQ Assistant into some other form so I can use another DAQ Assistant for developing another part of my VI?
    I have looked long and hard for a good explanation of the difference between Tasks and Virtual Channels and while I have found efforts at explaining it, I do not understand.  I see that I can convert my DAQ Assistant into a task, but then I have a task output which does not help me (I need a data output for my VI).
    I am sure this is obvious to someone that has done it a million times, but I just can't find an answer wading through all of the knowledge base information or the LabVIEW help.
    Thanks a bunch!
    ~milqman

    Hello milq,
    That following tutorial that Novatron linked you earlier is an awesome resource for becoming familiar with programming with the NI-DAQmx.
    Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications
    An important point to take away from this tutorial is that you can either create a DAQmx task using the wizard-style interfaces provided by the DAQ Assistant and within Measurement & Automation Explorer (MAX), or you can programmatically create and configure your DAQ Task in your LabVIEW code using the DAQmx Create Virtual Channel VI, DAQmx Timing VI, etc.  When you create a new DAQmx Task using the wizard-style interface, you are configuring all of the settings for your task manually.  When you use that DAQmx Task in LabVIEW (with a DAQmx Task Control or Constant), you are referencing all of those configuration options you've manually set.  To actually perform a read or write operation based on those settings, you need to wire the DAQmx Task into the 'task in' input of a DAQmx Read or DAQmx Write VI. 
    So for your analog input operation, you can wire the task directly into a DAQmx Read VI.  In the DAQmx Read VI, you'll want to select the type of task your reading from in the drop down box (Analog), if your reading from a single or multiple channels (1 Chan or N Chan), and if taking just one or multiple measurements with each call to the DAQmx Read VI (1 Samp or N Samp)
    For your digital output operation, you'll want to configure a separate digital output task, and wire it directly to a DAQmx Write VI.  Again, select the type of task your writing to (Digital), if your writing to a single or multiple channels, and if you want to perform a single write or multiple writes.
    To help with getting started with DAQmx programming in LabVIEW, I would highly recommend taking a look at the DAQmx example located in the LabVIEW Example Finder (Help > Find Examples).  A difference you'll note in these examples is that all the task configurations that you have been making with the wizard-style DAQ Assistant are done programmatically with the DAQmx Create Channel and DAQmx Timing VI.  I hope this helps and good luck!
    Travis G.
    Applications Engineering
    National Instruments
    www.ni.com/support
    Message Edited by Travis G. on 06-21-2006 05:23 PM
    Attachments:
    AnalogInDigitalOut.Jpg ‏21 KB

  • I have 3 devices on 1 Apple ID.  If I download an app on 1 it appears on all 3.  Can I avoid this or can I delete on 2 without impacting the other?

    I have 3 devices on 1 Apple ID.  If I download an app on 1, it appears on all 3.  Can I avoid this or can I delete on 2 of them without losing it on the 3rd?

    Turn off automatic downloads to stop it from automatically downloading.
    You can delete from the other two.  It has no effect on the others.

Maybe you are looking for