On Wed, Jan 28, 2009 at 8:19 AM, neil thorne
<[email protected]> wrote:
> 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.
Yes, flexcover is a work in progress and we haven't quite gotten to it
yet. So flexcover-mojo is only half-baked and requires manual
workarounds and nasty stuff like that.
> I'm just wondering if you guys have got this to work at all with
> 2.0.3?
It looks like you're missing the configFile setting. And instead of
commenting in/out your flex sdk version, try a profile. You need to
have a configFile pointing to a locally installed flexcover sdk.
Here's ours:
<profile>
<id>flexcover</id>
<properties>
<flex.sdk.version>3.2.0.3794-flexcover_0.81</flex.sdk.version>
</properties>
<build>
<plugins>
<plugin>
<!--
To run this plugin type
mvn -Pflexcover
in the root of your checkout.
-->
<groupId>info.flex-mojos</groupId>
<artifactId>flex-compiler-mojo</artifactId>
<version>${flex-mojos.version}</version>
<configuration>
<runtimeLocales>
<locale>en_US</locale>
</runtimeLocales>
<configFile>C:/Tools/flexcover/flexcover-sdk-3.0.0/frameworks/flex-config.xml</configFile>
<!-- Logan's config -->
<!--<configFile>/Users/logan/projects/flexcover_sdk-0.81/frameworks/flex-config.xml</configFile>-->
</configuration>
</plugin>
</plugins>
</build>
</profile>
The locales stuff is optional.
I haven't run it in a while, but IIRC, you run with -Pflexcover once
to get all your .cvms built and the instrumented swcs in your local
repo, then we manually open CoverageViewer and load all of our cvms,
then we run it again with -Pflexcover to run the tests and capture the
output.
See if that helps, and make sure you read the blog post on it for more details.
Logan
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---