|
|
Re: Deploy RCPTT test suite using Maven [message #1727429 is a reply to message #1727178] |
Tue, 22 March 2016 22:26  |
Eclipse User |
|
|
|
So I think I've found a workaround, it'd be nice if this wasn't required though!
To be able to skip the download of the AUT and test executions before deployment, use a maven profile similar to the following:
<profile>
<id>SkipTests</id>
<activation>
<property>
<name>skipTests</name>
</property>
</activation>
<!-- Manually copy test scripts into RCPTT directory for deployment -->
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>copy-tests</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<filtering>true</filtering>
<outputDirectory>${project.build.directory}${file.separator}projects${file.separator}${project.artifactId}</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}</directory>
<excludes>
<exclude>target</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
This will activate when the "-DskipTests" argument is specified when running the maven deploy. It basically replicates the copying of test scripts into the RCPTT /target/projects/ directory so that RCPTT can archive and deploy them.
To run the deploy, use a command similar to "mvn clean deploy -DskipTests".
|
|
|
Powered by
FUDForum. Page generated in 0.05775 seconds