Hi guys,

that's for the plugins they're great.

I just got flexunit working on unix and windows in Bamboo. I really
want to try and get some coverage data next but after hours of
struggling I cannot get the flexcover mojo to cooperate.

I am running

mvn clean flexcover-mojo:instrument flexcover-mojo:flexcover-run

and what I see happen is the coverage viewer is launched, then my
flexunit test runner app is also launched, all the tests run to
completion and maven exits.

But the coverage viewer is still there. At this point only my cvm file
is in target/flexcover-classes

When I close the viewer I get the cvr file written.

I read from the flexcover docs that you're supposed to use
CoverageManager.exit() to ensure a clean flush? I didn't see any
support for this within the mojos source code.

I'm using flex-mojos version 2.0.3 as you can see below...

I'm just wondering if you guys have got this to work at all with
2.0.3?

thanks in advance,

Neil

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>shoppinglist-parent</artifactId>
        <groupId>org.gianttree.shoppinglist</groupId>
        <version>1.0-SNAPSHOT</version>
    </parent>

    <artifactId>shoppinglist-client</artifactId>
    <version>1.0-SNAPSHOT</version>
    <name>Shopping List - Client</name>
    <packaging>swf</packaging>

    <properties>
        <flex-mojos.version>2.0.3</flex-mojos.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.adobe.flexunit</groupId>
            <artifactId>flexunit</artifactId>
            <version>0.9</version>
            <type>swc</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.flex-mojos</groupId>
            <artifactId>testing-support</artifactId>
            <version>${flex-mojos.version}</version>
            <type>swc</type>
            <scope>test</scope>
        </dependency>
        <!--<dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>flex-framework</artifactId>
            <version>3.2.0.3958</version>
            <type>pom</type>
        </dependency>-->
        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>flex-framework</artifactId>
            <version>3.0.1.1092-flexcover_0.61</version>
            <type>pom</type>
        </dependency>
    </dependencies>
    <profiles>
        <profile>
            <id>flexunit-windows</id>
            <activation>
                <os>
                    <family>windows</family>
                </os>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>info.flex-mojos</groupId>
                        <artifactId>flex-compiler-mojo</artifactId>
                        <version>${flex-mojos.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <flexUnitCommand>
                                <argument>rundll32</argument>
                                <argument>url.dll,FileProtocolHandler</
argument>
                            </flexUnitCommand>
                            <locales>
                                <param>en_US</param>
                            </locales>
                            <keepAs3Metadatas>
                                <param>Required</param>
                            </keepAs3Metadatas>
                            <updateSecuritySandbox>true</
updateSecuritySandbox>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>flexunit-unix</id>
            <activation>
                <os>
                    <family>unix</family>
                </os>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>info.flex-mojos</groupId>
                        <artifactId>flex-compiler-mojo</artifactId>
                        <version>${flex-mojos.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <flexUnitCommand>
                                <argument>gflashplayer</argument>
                                <argument>$
{project.build.testOutputDirectory}/TestRunner.swf</argument>
                            </flexUnitCommand>
                            <locales>
                                <param>en_US</param>
                            </locales>
                            <keepAs3Metadatas>
                                <param>Required</param>
                            </keepAs3Metadatas>
                            <updateSecuritySandbox>true</
updateSecuritySandbox>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <groupId>info.flex-mojos</groupId>
                <artifactId>flexcover-mojo</artifactId>
                <version>${flex-mojos.version}</version>
                <dependencies>
                    <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>3.0.1.1092-flexcover_0.61</version>
                        <type>pom</type>
                    </dependency>
                    <dependency>
                        <groupId>com.adobe.flexunit</groupId>
                        <artifactId>flexunit</artifactId>
                        <version>0.9</version>
                        <type>swc</type>
                        <scope>test</scope>
                    </dependency>
                    <dependency>
                        <groupId>info.flex-mojos</groupId>
                        <artifactId>testing-support</artifactId>
                        <version>${flex-mojos.version}</version>
                        <type>swc</type>
                        <scope>test</scope>
                    </dependency>
                </dependencies>
                <configuration>
                    <coverageViewerPath>C:/tools/flexcover-
install-0.81/CoverageViewer/CoverageViewer.exe
                    </coverageViewerPath>
                    <locales>
                        <locale>en_US</locale>
                    </locales>
                </configuration>
            </plugin>
        </plugins>

        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ftp</artifactId>
                <version>1.0-alpha-6</version>
            </extension>
        </extensions>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>info.flex-mojos</groupId>
                <artifactId>asdoc-mojo</artifactId>
                <version>${flex-mojos.version}</version>
            </plugin>
            <plugin>
                <groupId>info.flex-mojos</groupId>
                <artifactId>flexcover-mojo</artifactId>
                <version>${flex-mojos.version}</version>
            </plugin>
        </plugins>
    </reporting>

</project>

--~--~---------~--~----~------------~-------~--~----~
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