You do realize that using scope internal means you are shipping a SWF (potentially to customers) that includes automation stuff on it, right?!
VELO On Wed, Jun 30, 2010 at 1:19 PM, David Winterfeldt <[email protected]>wrote: > Thanks for the responses. I figured this out earlier in the week. I added > the includes to my flex mojo compilation and set the scope to internal to > include the automation library (same as include-libraries). > > The selenium config is setup to run during the maven integration-test > lifecycle and starts selenium using the Flex Monkey JS extension that you > can get from their zip and put it somewhere in your project. I put all this > into a separate profile so the automation libraries wouldn't be in a normal > build. > > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>automation</artifactId> > <version>${flex.version}</version> > <type>swc</type> > <scope>internal</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>automation-agent</artifactId> > <version>${flex.version}</version> > <type>swc</type> > <scope>internal</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>automation-dmv</artifactId> > <version>${flex.version}</version> > <type>swc</type> > <scope>internal</scope> > </dependency> > <dependency> > <groupId>com.gorillalogic.flexmonkium</groupId> > <artifactId>automation-monkey</artifactId> > <version>0.8.4</version> > <type>swc</type> > </dependency> > > <configuration> > ... > <includes> > > <include>com.gorillalogic.flexmonkium.FlexMonkium</include> > </includes> > </configuraion> > > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>selenium-maven-plugin</artifactId> > <version>1.0.1</version> > <executions> > <execution> > <id>start-selenium</id> > <phase>pre-integration-test</phase> > <goals> > <goal>start-server</goal> > </goals> > <configuration> > <background>true</background> > > <userExtensions>src/test/resources/selenium/flexmonkey/user-extensions.js</userExtensions> > </configuration> > </execution> > </executions> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <skip>true</skip> > </configuration> > > <executions> > <execution> > <phase>integration-test</phase> > <goals> > <goal>test</goal> > </goals> > <configuration> > <skip>false</skip> > > <includes> > <include>**/*FlexIntegrationTest.java</include> > </includes> > </configuration> > </execution> > </executions> > </plugin> > > David > > On Wed, Jun 30, 2010 at 7:22 AM, Marvin Froeder <[email protected]> wrote: > >> Or scope test + test-swf goal. >> >> VELO >> >> >> On Wed, Jun 30, 2010 at 10:38 AM, Logan Allred <[email protected]> wrote: >> >>> On Mon, Jun 21, 2010 at 12:21 PM, David Winterfeldt >>> <[email protected]> wrote: >>> > I want to add automation to a flexmojo build. I'm trying to use Flex >>> > Monkium (Gorilla Logic Flex Monkey Selenium Extension) to automate >>> > integration tests. I have this working with FlashBuilder using these >>> extra >>> > options below, but I'm not sure how to add this to the Maven >>> configuration. >>> > I'd like to have build profile that generates the swf with the >>> automation, >>> > but not have this go to QA or Production builds. >>> > >>> > -includes com.gorillalogic.flexmonkium.FlexMonkium -include-libraries >>> > "${flexlib}/libs/automation.swc" >>> "${flexlib}/libs/automation_agent.swc" >>> > "${flexlib}/libs/automation_dmv.swc" >>> >>> The -includes option is here: >>> >>> http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swf-mojo.html#includes >>> >>> The -include-libraries is done by setting <scope>internal</scope> I >>> believe. >>> >>> 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]<flex-mojos%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/flex-mojos >>> >>> http://flexmojos.sonatype.org/ >>> >> >> -- >> 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]<flex-mojos%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/flex-mojos >> >> http://flexmojos.sonatype.org/ >> > > -- > 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]<flex-mojos%[email protected]> > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- 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/
