Hello all, I'm having a problem when trying to run unit tests with FlexUnit4 (with maven and flexmojos, of course. "mvn test")
The surface problem is that I get an exception in the flash player when it tries to run a test. The deeper problem is that my unit tests, indirectly, depend on some classes in rsl's which are not linked into the testing swf (and which are located in the local maven repository) >From the various docs, it seems like the right thing to do is to use the >rslUrls element in the plugin definition in the pom.xml (as mentioned here >https://docs.sonatype.org/display/FLEXMOJOS/Runtime+Shared+Libraries ). >However, I can't, for the life of me, figure out exactly what syntax I should >be specifying here. Does anyone have experience with this? Thanks! David I'm including my pom.xml, below, in case that sheds any light on this. <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> <groupId>org.whatever.test</groupId> <artifactId>sample-library</artifactId> <version>1.0-SNAPSHOT</version> <packaging>swc</packaging> <name>sample-library Flex</name> <properties> <flex.sdk.version>4.1.0.16076</flex.sdk.version> </properties> <build> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>3.6.1</version> <extensions>true</extensions> <configuration> <rslUrls> <!-- One of many variations I've tried --> <rsl>file:///C:/Users/me/example/repo/com/adobe/flex/framework/textLayout/4.1.0.16076/{artifactId}-{version}.{extension}</rsl> </rslUrls> </configuration> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>${flex.sdk.version}</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flex.compiler</groupId> <artifactId>asdoc</artifactId> <version>${flex.sdk.version}</version> <type>zip</type> <classifier>template</classifier> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>4.1.0.16076</version> <type>pom</type> <exclusions> <exclusion> <artifactId>playerglobal</artifactId> <groupId>com.adobe.flex.framework</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>playerglobal</artifactId> <version>4.1.0.16076</version> <type>swc</type> <classifier>10.1</classifier> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>textLayout</artifactId> <version>4.1.0.16076</version> <type>swc</type> <scope>external</scope> <!-- merged works, of course --> </dependency> <dependency> <groupId>com.adobe.flexunit</groupId> <artifactId>flexunit</artifactId> <version>4.0-rc-1</version> <type>swc</type> <scope>test</scope> </dependency> </dependencies> </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 http://flexmojos.sonatype.org/
