Me again,

Now that my tests run a single time, my suite class does not seem to
be recognized.

No matter what I put inside, my test case classes are always executed
in an arbitrary order. Therefore,
I cannot execute test cases in a specific order neither executes
methods of several test cases in a specific order like this:

Test1.as:
MethodA order=2

Test2.as
MethodB order=1
methodC order=3

Which should execute method in this order:
B - A - C

What did I miss? What should I do ?



On 24 sep, 10:25, Sébastien Varlet <[email protected]> wrote:
> Thank you, it worked, suite classes names should not start or end by
> Test.
>
> Unless I'm really bad at searching google and your wiki, you should
> probably explain this in your documentation.
>
> On 23 sep, 18:53, Marvin Froeder <[email protected]> wrote:
>
>
>
> > Flexmojos does scan for test class using a simple filename pattern
> > scanner.... whatever classes match the pattern will be include on test
> > runner.
>
> > VELO
>
> > On Thu, Sep 23, 2010 at 1:34 PM, Sébastien Varlet <
>
> > [email protected]> wrote:
> > > Hi,
>
> > > I made a small library of common value objects and decided to try
> > > flexunit 4 on it.
>
> > > Everything is working but too much actually :)
>
> > > I made two test methods in a single testcase class which is declared
> > > as a public variable of a Suite class (with the Suite and RunWith ).
>
> > > When I do mvn test, I see
> > > Tests run: 4, failed 0, errors: 0
>
> > > In target/testrunner.mxml I see:
> > > Addtest( myTestCaseClass)
> > > AddTest(myTestSuiteClass)
>
> > > This explains why my tests seems to be executed twice.
>
> > > In target/surefire-reports I see one file named like my testsuite with
> > > a testsuite tag inside and two testcase into it. No errors reported.
>
> > > What's wrong ? It looks like flexunit did not distinguish my test
> > > suite from my test case...
>
> > > --
> > > 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
>
> > >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

http://flexmojos.sonatype.org/

Reply via email to