I retreived the example project from Sonatype : http://svn.sonatype.org/flexmojos/branches/flexmojos-4.x/flexmojos-touchstone/coverage/
I retrieved the flexmojos alpha 3 here : http://svn.sonatype.org/flexmojos/tags/flexmojos-4.0-alpha-3/ I retrieved apparat (using the apaprat-1.0-FLEXMOJOS-r511) tag from googlecode I built apparat, then flexmojos4. After making modifications to the example project pom (as directed on the sonatype webpage) I ran mvn install clean on the example It runs the tests, but no coverage reports are ever generated. here's the output from the build: ========================================== C:\example\flexunit-example>mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building calculator-api 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml [INFO] [INFO] --- maven-clean-plugin:2.4:clean (default-clean) @ calculator- api --- [INFO] Deleting C:\example\flexunit-example\target [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ calculator-api --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\example\flexunit-example \src\main\resources [INFO] [INFO] --- flexmojos-maven-plugin:4.0-alpha-3:compile-swc (default- compile-swc) @ calculator-api --- [INFO] Flexmojos 4.0-alpha-3 [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file [INFO] Writing configuration dump to C:\example\flexunit-example\target \calculator-api-1.0-SNAPSHOT-configs.xml [INFO] C:\example\flexunit-example\target\calculator-api-1.0- SNAPSHOT.swc (1999 bytes) [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default- testResources) @ calculator-api --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\example\flexunit-example \src\test\resources [INFO] [INFO] --- flexmojos-maven-plugin:4.0-alpha-3:test-compile (default- test-compile) @ calculator-api --- [INFO] Flexmojos 4.0-alpha-3 [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file [INFO] Compiling test class: [com.adobe.example.TestCalculator, com.adobe.example.TestCalculator2] [INFO] Writing configuration dump to C:\example\flexunit-example\target \test-classes\TestRunner-configs.xml [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[246,-1] The st yle 'backgroundColor' is only supported by type 'mx.core.Application' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[488,-1] The st yle 'dropShadowVisible' is only supported by type 'mx.controls.List' with the theme(s) 'spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[505,-1] The st yle 'cornerRadius' is only supported by type 'mx.core.Container' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1025,-1] The s tyle 'borderColor' is only supported by type 'mx.containers.Panel' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1023,-1] The s tyle 'backgroundColor' is only supported by type 'mx.containers.Panel' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1029,-1] The s tyle 'cornerRadius' is only supported by type 'mx.containers.Panel' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1025,-1] The s tyle 'borderAlpha' is only supported by type 'mx.containers.Panel' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1372,-1] The s tyle 'borderColor' is only supported by type 'mx.containers.TabNavigator' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1371,-1] The s tyle 'backgroundColor' is only supported by type 'mx.containers.TabNavigator' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1512,-1] The s tyle 'borderColor' is only supported by type 'mx.controls.ToolTip' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1510,-1] The s tyle 'backgroundColor' is only supported by type 'mx.controls.ToolTip' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1515,-1] The s tyle 'cornerRadius' is only supported by type 'mx.controls.ToolTip' with the theme(s) 'halo, spark'. [WARNING] C:\Documents and Settings\a434935\.m2\repository\com\adobe \flex\framework\framework\4.1.0.15646\framework-4.1.0.15646.swc $defaults.css:[1512,-1] The s tyle 'backgroundAlpha' is only supported by type 'mx.controls.ToolTip' with the theme(s) 'halo, spark'. [INFO] C:\example\flexunit-example\target\test-classes\TestRunner.swf (944872 bytes) [INFO] [INFO] --- flexmojos-maven-plugin:4.0-alpha-3:test-run (default-test- run) @ calculator-api --- [INFO] Flexmojos 4.0-alpha-3 [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file [INFO] Running tests C:\example\flexunit-example\target\test-classes \TestRunner.swf [WARNING] [LAUNCHER] Using regular flashplayer tests [INFO] ------------------------------------------------------------------------ [INFO] Tests run: 2, Failures: 0, Errors: 0, Time Elapsed: 0 sec [INFO] [INFO] --- flexmojos-maven-plugin:4.0-alpha-3:create-rsl (default- create-rsl) @ calculator-api --- [INFO] Flexmojos 4.0-alpha-3 [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file C:\example\flexunit-example\target\classes\original.swf (1192 bytes) C:\example\flexunit-example\target\classes\optimized.swf (808 bytes) [i] Compression ratio: 0.0% [i] Total bytes: 0 [i] Compression ratio: 0.0% [i] Total bytes: 0 [INFO] Optimization result: 67.79% [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ calculator-api --- [INFO] Installing C:\example\flexunit-example\target\calculator- api-1.0-SNAPSHOT.swc to C:\Documents and Settings \a434935\.m2\repository\com\adobe\samples\calcu lator-api\1.0-SNAPSHOT\calculator-api-1.0-SNAPSHOT.swc [INFO] Installing C:\example\flexunit-example\target\calculator- api-1.0-SNAPSHOT.swf to C:\Documents and Settings \a434935\.m2\repository\com\adobe\samples\calcu lator-api\1.0-SNAPSHOT\calculator-api-1.0-SNAPSHOT.swf [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.745s [INFO] Finished at: Fri Jun 25 12:32:36 MDT 2010 [INFO] Final Memory: 7M/105M [INFO] ------------------------------------------------------------------------ C:\example\flexunit-example> =========================================== Here is the POM file : <?xml version="1.0" encoding="UTF-8"?> <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> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-flex-super-pom</artifactId> <version>4.0-alpha-3</version> </parent> <groupId>com.adobe.samples</groupId> <artifactId>calculator-api</artifactId> <version>1.0-SNAPSHOT</version> <packaging>swc</packaging> <build> <sourceDirectory>src</sourceDirectory> <testSourceDirectory>tests</testSourceDirectory> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.1.2</version> </plugin> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>4.0-alpha-3</version> <configuration> <coverage>true</coverage> </configuration> </plugin> </plugins> </reporting> <dependencies> <dependency> <groupId>com.adobe.flexunit</groupId> <artifactId>flexunit</artifactId> <version>0.85</version> <type>swc</type> <scope>test</scope> </dependency> </dependencies> </project> Perhaps i'm missing something, but according to what i'm reading, this should have produced coverage reports, but it has not. _mike -- 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/
