Does the logs tell that test1, 2, 3 and 4 failed, but surefire reports
something different?! Is that it?

Weird, I have no clue here.

On Wed, Aug 25, 2010 at 1:44 PM, jscharett <[email protected]> wrote:

> There seems to be an issue with FlexMojos and the use of Parametrized
> tests in FlexUnit4.  I'm using FlexMojos version 3.7.1(have also tried
> 3.6.1 and 3.4.0) and FlexUnit4.1-beta3.  I have a test class which has
> 4 tests, 3 of which are Parametrized following the TestNG style.  When
> I run the tests, everything passes and seems wonderful.  But addiing
> fail statements to each of the tests, I only see 2 failing tests in my
> surefire report; 1 non-parametrized test and 1 parametrized test. I
> first thought this was a problem with the FlexUnit4 library, but
> running the TestRunner.swf using FlexBuilders debug mode, the console
> shows each test running and failing.  There seems to be a disconnect
> as to what FlexUnit is reporting and what FlexMojos is returning.
>
>
> Here is a shell my test class.
>
> package myPackage
> {
>        import org.flexunit.Assert;
>        import org.flexunit.async.Async;
>        import org.flexunit.runners.Parameterized;
>        import org.fluint.uiImpersonation.UIImpersonator;
>
>
>        [RunWith("org.flexunit.runners.Parameterized")]
>        public class ExternalResourceTest
>        {       private var foo:Parameterized;
>
>                [Before(async, ui)]
>                public function testSetUp() : void {
>                        //Do some test method setup
>                }
>
>                [After(ui)]
>                public function testTearDown() : void {
>                        //Do some test method teardown
>                }
>
>                [Test(async)]
>                public function test1() : void {
>                        Assert.fail("I'm failing");
>                }
>
>                [Test(async, dataProvider="test2Data")]
>                public function test2(passThroughData:Object) : void {
>                        Assert.fail("I'm failing");
>                }
>
>                [Test(async, dataProvider="test3Data")]
>                public function test3(passThroughData:Object) : void {
>                        Assert.fail("I'm failing");
>                }
>
>                [Test(async, dataProvider="test4Data")]
>                public function test4(passThroughData:Object) : void {
>                        Assert.fail("I'm failing");
>                }
>
>
>
>                [DataPoints]
>                public static var test2Data:Array = [
>                        [{}]
>                ];
>
>                [Datapoints]
>                public static var test3Data:Array = [
>                        [{}]
>                ];
>
>                [Datapoints]
>                public static var test4Data:Array = [
>                        [{}]
>                ];
>        }
> }
>
> --
> 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%[email protected]>
> 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