Ok ... fixed :-) (You actually made me dig into the code of the
unit-test integration. I think this has potential for quite some
improvements ;-) )


2012/8/8 Xavier Fournet <[email protected]>:
> I hit the same problem here. If you are still interessed in it, here is the
> fix that I'm using
> https://github.com/velo/flexmojos/pull/7
>
>
> Le mercredi 25 août 2010 18:44:35 UTC+2, jscharett a écrit :
>>
>> 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]
> 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