kie-drools-wb-smoke-tests-eap
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.kie.smoke</groupId> <artifactId>kie-drools-wb-smoke-tests-eap</artifactId> <version>6.2.0.Beta3</version> </dependency>
<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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.kie.smoke</groupId> <artifactId>kie-drools-wb-smoke-tests</artifactId> <version>6.2.0.Beta3</version> </parent> <artifactId>kie-drools-wb-smoke-tests-eap</artifactId> <packaging>jar</packaging> <name>KIE Smoke Tests :: kie-drools-wb :: EAP 6 tests</name> <properties> <skip.integration.tests>true</skip.integration.tests> </properties> <dependencies> <dependency> <groupId>org.kie.smoke</groupId> <artifactId>kie-drools-wb-smoke-tests-base</artifactId> <scope>test</scope> </dependency> <!-- war --> <dependency> <groupId>org.kie</groupId> <artifactId>kie-drools-wb-distribution-wars</artifactId> <classifier>eap-6_1</classifier> <scope>test</scope> <type>war</type> </dependency> <!-- arquillian --> <dependency> <groupId>org.jboss.arquillian.junit</groupId> <artifactId>arquillian-junit-container</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap</groupId> <artifactId>shrinkwrap-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap.resolver</groupId> <artifactId>shrinkwrap-resolver-api-maven</artifactId> <scope>test</scope> </dependency> <!-- arquillian jboss eap --> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-arquillian-container-managed</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> </testResource> <testResource> <directory>src/test/resources-eap-6</directory> <filtering>false</filtering> </testResource> </testResources> <!-- running tests --> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <executions> <execution> <id>failsafe-test</id> <phase>integration-test</phase> <goals> <goal>integration-test</goal> </goals> </execution> <execution> <id>failsafe-verify</id> <phase>verify</phase> <goals> <goal>verify</goal> </goals> </execution> </executions> <configuration> <argLine>-Xms512m -Xmx1024m -XX:MaxPermSize=512m</argLine> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <!-- only run when... --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <configuration> <skipTests>${skip.integration.tests}</skipTests> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> <include>**/*Test.java</include> </includes> <excludes> <exclude>**/*IntegrationTest.java</exclude> </excludes> <argLine>-Xmx1024m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8</argLine> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>eap-integration-tests</id> <properties> <skip.integration.tests>false</skip.integration.tests> </properties> <build> <plugins> <!-- 1. install server in the build/target dir --> <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-jboss</id> <phase>generate-test-resources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-dist</artifactId> <type>zip</type> <overWrite>false</overWrite> <outputDirectory>${project.build.directory}</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> <execution> <id>check-kie-drools-wb-war</id> <phase>generate-test-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.kie</groupId> <artifactId>kie-drools-wb-distribution-wars</artifactId> <classifier>eap-6_1</classifier> <type>war</type> <overWrite>false</overWrite> </artifactItem> </artifactItems> <outputDirectory>${project.build.directory}/deployments</outputDirectory> </configuration> </execution> </executions> </plugin> <!-- 2. install files with user/password information in the server dir --> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-user-config</id> <phase>process-test-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/${jboss.eap.server.name}/standalone/configuration</outputDirectory> <resources> <resource> <directory>src/test/resources-eap-6/config</directory> <filtering>false</filtering> </resource> </resources> <overwrite>true</overwrite> </configuration> </execution> </executions> </plugin> <!-- 3. modify server configuration --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xml-maven-plugin</artifactId> <version>1.0</version> <executions> <execution> <id>modify-standalone-full</id> <phase>process-test-resources</phase> <goals> <goal>transform</goal> </goals> <configuration> <transformationSets> <transformationSet> <dir>${project.build.directory}/${jboss.eap.server.name}/standalone/configuration</dir> <outputDir>${project.build.directory}/${jboss.eap.server.name}/standalone/configuration</outputDir> <includes> <include>standalone-full.xml</include> </includes> <stylesheet>src/test/resources-eap-6/xslt/addDebugLogging.xslt</stylesheet> </transformationSet> </transformationSets> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.google.code.maven-replacer-plugin</groupId> <artifactId>replacer</artifactId> <executions> <execution> <id>fix-broken-junit-reports</id> <phase>post-integration-test</phase> <goals> <goal>replace</goal> </goals> <configuration> <basedir>${project.build.directory}/failsafe-reports</basedir> <includes> <include>TEST*xml</include> </includes> <unescape>true</unescape> <tokenValueMap>${basedir}/replace-tokenFile.txt</tokenValueMap> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>