Yea I tried that but now I've gotten down to it. As I mentioned before
I do have classes with the same names in different packages which is
causing the issue b/c the generated TestRunner does "addTest(A);" for
both "A" classes. I think instead it should perhaps do
"addTest(com.acme.A)" and "addTest(com.acme.foo.A)".

My tests are organized such as...

src\test\
        base\ATests.as
        misc\ATests.as

in my pom if I put:

<includeTestFiles>
   <includeTestFile>base\*Tests.as</includeTestFile>
</includeTestFiles>

it runs the "base" tests. So I renamed my misc\ATest.as to misc
\MiscATests.as and set my pom.xml to

<includeTestFiles>
   <includeTestFile>base\*Tests.as</includeTestFile>
   <includeTestFile>base\misc\*Tests.as</includeTestFile>
</includeTestFiles>

all is well now, thanks for the help (again).

On Feb 25, 9:07 pm, Marvin Froeder <[email protected]> wrote:
> http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/test-compi...
>
>
>
> On Thu, Feb 25, 2010 at 11:04 PM, codecraig <[email protected]> wrote:
> > So I have an ant build.xml with the following which runs ok:
>
> >    <java jar="${FLEX_HOME}/lib/mxmlc.jar" dir="${FLEX_HOME}/
> > frameworks" fork="true" failonerror="true">
> >      <arg value="${test.src.loc}/MyTest.mxml"/>
> >      <arg value="-source-path=${main.src.loc}"/>
> >      <arg value="-output=${bin.loc}/TestRunner.swf"/>
> >      <arg value="-default-size=200,200"/>
> >      <arg value="-default-background-color=0x000000"/>
> >      <arg value="-incremental=true"/>
> >      <arg value="-verbose-stacktraces=true"/>
> >      <arg value="-headless-server=true"/>
> >    </java>
>
> > So all of the classes that use [Test] are named *Tests.as....maybe
> > there's a way to tell flexmojos to test files named *Tests.as but also
> > include/use any of the other classes provided in the test directory
> > (since there are helper classes, etc in there)?
>
> > On Feb 25, 8:55 pm, Marvin Froeder <[email protected]> wrote:
> > > My e-mail is on this thread...
> >http://groups.google.com/group/flex-mojos/browse_thread/thread/46fc62...
>
> > > Flexunit seem to disagree with you....
>
> > > It did get ZERO tests to be executed..
>
> > > VELO
>
> > > On Thu, Feb 25, 2010 at 10:51 PM, codecraig <[email protected]> wrote:
> > > > Ok, I just got your email outside of this thread.
>
> > > So I renamed one of
>
> > > > the TestContext to something else. However, when I run the tests I'm
> > > > getting the dreaded error:
>
> > > > [WARNING] [LAUNCHER] Using regular flashplayer tests
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] Tests run: 0, Failures: 0, Errors: 0, Time Elapsed: 0 sec
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] Invalid state: the flashplayer is closed, but the sockets still
> > > > running...
>
> > > > I'm running on Windows and I see the flash player appear and then
> > > > close. I do have classes with [Test] in them, however, I do have
> > > > classes that don't have [Test] b/c they are just helper classes, etc.
> > > > Thoughts?
>
> > > > On Feb 25, 8:41 pm, codecraig <[email protected]> wrote:
> > > > > So I think the problem is related to the fact that I have two tests
> > > > > with the same class name, even though the reside in different
> > > > > packages. Here's the snippet from
> > \target\test-classes\TestRunner.mxml
>
> > > > > import com.acme.TestContext;
> > > > > import com.acme.foo.TestContext;
>
> > > > > ..
> > > > > private function init():void {
> > > > > ...
> > > > > addTest( TestContext);
> > > > > addTest( TestContext);
> > > > > ...
>
> > > > > How can I create my own TestRunner to perhaps get around this?
>
> > > > > Thanks
>
> > > > > On Feb 25, 4:52 pm, Marvin Froeder <[email protected]> wrote:
>
> > > > > > You can create a custom test runner, but it is not just an mxml
> > > > Application.
>
> > > > > > You can filter what will be tested using inclusion/exclusion
> > > > parameters....
>
> > > > > > VELO
>
> > > > > > On Thu, Feb 25, 2010 at 6:48 PM, codecraig <[email protected]>
> > > > wrote:
> > > > > > > I'm using flexmojos 3.5 and FlexUnit 4 and I have my own test
> > runner
> > > > > > > which extends Application. In it's creationComplete I create a
> > > > > > > FlexUnitCore and register a TraceListener and CIListener. I also
> > > > > > > register my test suites with the FlexUnitCore object.
>
> > > > > > > Can i tell Flexmojos to use this test mxml Application? If not,
> > can I
> > > > > > > tell it to run a certain suite?
>
> > > > > > > thanks
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > > Groups "Flex Mojos" group.
> > > > > > > To post to this group, send email to [email protected]
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > [email protected]<flex-mojos%2bunsubscr...@googlegrou
> > > > > > >  ps.com>
> > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> > > > > > >http://flexmojos.sonatype.org/
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Flex Mojos" group.
> > > > To post to this group, send email to [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<flex-mojos%2bunsubscr...@googlegrou
> > > >  ps.com>
> > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> > > >http://flexmojos.sonatype.org/
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex Mojos" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<flex-mojos%2bunsubscr...@googlegrou 
> > ps.com>
> > For more options, visit this group at
> >http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> >http://flexmojos.sonatype.org/

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://flexmojos.sonatype.org/

Reply via email to