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