Well, it does print a test result summary and if you wanna see the entire
reports they are saved at target/surefire-reports.


VELO

On Sun, Jan 11, 2009 at 2:02 PM, Conrad Winchester <[email protected]>wrote:

>
> Yes - I see now - and learning that the goal is headless builds then I
> will not proceed along this path.
>
> Is there any way to get more data on the command line about which
> tests are done and whether or not they succeed?
>
>
> On Jan 11, 3:30 pm, "Marvin Froeder" <[email protected]> wrote:
> > Look at original template.
> >
> > It does use some custom classes.  This code send message (over socket) to
> > Java side.  This allows maven to know what is going on.
> >
> > VELO
> >
> > On Sun, Jan 11, 2009 at 8:38 AM, Conrad Winchester <[email protected]
> >wrote:
> >
> >
> >
> >
> >
> > > Hi all,
> >
> > > I am really enjoying getting to grips with Maven and the flex-mojos.
> > > As you can see though I am generating a few questions. I am trying to
> > > use FlexUnitRunner as my test runner. I include it via a dependancy as
> > > follows
> >
> > >        <dependency>
> > >            <groupId>org.defusion.flexunit</groupId>
> > >            <artifactId>FlexUnitRunner</artifactId>
> > >            <version>0.2.0</version>
> > >            <type>swc</type>
> > >            <scope>test</scope>
> > >        </dependency>
> >
> > > I then use it by specifying the following parameters
> >
> > >        <plugin>
> > >            <groupId>info.flex-mojos</groupId>
> > >            <artifactId>flex-compiler-mojo</artifactId>
> > >            <configuration>
> > >                <targetPlayer>10.0.0</targetPlayer>
> > >                <sourcePaths>
> > >                    <path>libs/FWP_AS3Classes</path>
> > >                    <path>src</path>
> > >                </sourcePaths>
> > >                <debug>true</debug>
> > >                <testRunnerTemplate>${basedir}/tests/org/fwg/tests/
> > > DebugTestRunner.vm</testRunnerTemplate>
> > >                <defaultSizeWidth>800</defaultSizeWidth>
> > >                <defaultSizeHeight>600</defaultSizeHeight-->
> > >            </configuration>
> > >        </plugin>
> >
> > > My testrunner template seems to be an improvement over the other on I
> > > have seen listed on these lists (it actually works with 2.1M10).
> >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:Application
> > >    xmlns:mx="http://www.adobe.com/2006/mxml";
> > >    xmlns:flexui="flexunit.flexui.*"
> > >    xmlns:defusion="org.defusion.flexunit.*"
> > >    creationComplete="creationCompleteHandler()"
> >
> > >    <mx:Script>
> > >    <![CDATA[
> > >        import flexunit.framework.TestSuite;
> > >                $imports
> >
> > >                private var testSuite:TestSuite;
> >
> > >        private function creationCompleteHandler(): void
> > >        {
> > >            flexUnitRunner.test = createSuite();
> > >            flexUnitRunner.startTest();
> > >        }
> >
> > >        private function createSuite():TestSuite
> > >        {
> > >            testSuite = new TestSuite();
> > >                        $testClasses
> > >            return testSuite;
> > >        }
> >
> > >                private function addTest(test:Class):void
> > >                {
> > >                        testSuite.addTestSuite(test);
> > >                }
> > >    ]]>
> > >    </mx:Script>
> > >    <defusion:FlexUnitRunner
> > >        id="flexUnitRunner"
> > >        width="100%"
> > >        height="100%"
> > >        />
> > > </mx:Application>
> >
> > > So this all works, sort of - The Test mojo runs and I see flexunit
> > > runner start up and run my tests (nice), but after closing down the
> > > flash player it is running in, the build process refuses to continue.
> > > I have to use Ctrl-c to exit it. When I run wth the default runner it
> > > works fine.
> >
> > > I think this might be to do with maven connecting to the testrunner,
> > > but don't really know how to proceed - does anybody have a clue.
> >
> > > What would be ideal is if the tests all pass then the runner closes
> > > down automatically, but if any tests fail then the runner stays
> > > visible in order to show which tests did not pass and why.
> >
> > > Thanks for listening
> >
> > > Conrad
> >
>

--~--~---------~--~----~------------~-------~--~----~
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://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to