Understand. just to give you more data, here is part of my flash logs along with the xml report. Logs show all tests running, but report does not. Really weird
FlexUnit4: Test testSetClickable in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testSetClickable in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started Data handler received data: Server Status Property canClose is false Replying OK FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started Property canClose set to true FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testRenderedCorrectly ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest failed FlexUnit4: Test testCreateSubfieldMap ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testSetText ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testSetText ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished FlexUnit4: Test testSetText ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest started FlexUnit4: Test testSetText ([object Object]) in com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest finished <testsuite errors="0" failures="0" name="com.tlcdelivers.ls2kids.views.itemdetails.fields.ExternalResourceTest" tests="5" time="0"> <testcase name="testSetClickable" time="0"/> <testcase name="testRenderedCorrectly ([object Object])" time="0"/> </testsuite> On Wed, Aug 25, 2010 at 2:57 PM, Marvin Froeder <[email protected]> wrote: > I have no clue either > > On Wed, Aug 25, 2010 at 3:39 PM, James Scharett <[email protected]>wrote: > >> Also worth noting, as I comment/uncomment tests in the class, the "Tests >> run" that That is displayed in the console changes. Here are the results I >> am seeing >> >> Ran with Test1(non parametrized) only: Tests Run:30 >> Ran with Test2(parametrized) only: Tests Run:31 >> Ran with Test1 and Test2: Tests Run:32 >> Ran with Test1, Test2, Test3: Tests Run:33 >> Ran with all 4 tests: Tests Run:34 >> >> Its interesting that the count increased from 30 to 31 when switching >> from a non-parametrized test to one that is. The dataProvider has 8 items >> in it, so it should be running the test 8 times. I would think my Tests Run >> would be 38. Not sure if this is an issue with FlexMojos or FlexUnit, but >> is a def problem for me going forward. >> >> On Wed, Aug 25, 2010 at 1:18 PM, Marvin Froeder <[email protected]>wrote: >> >>> 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]<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]<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]<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/
