Deploy RCPTT test suite using Maven without running tests [message #1723924] |
Fri, 19 February 2016 06:38 |
Alexander Poga Messages: 3 Registered: February 2016 |
Junior Member |
|
|
Hello RCPTT forum,
I have successfully been running RCPTT through Maven and deployed a test suite to an Artifactory Maven repository. It all seems to work very well. For context, I'm currently using release v2.0.0.
Is it possible to run a Maven deploy goal on an RCPTT test suite without having to run the tests or download an AUT first?
I'd like to be able to deploy and aggregate a number of test suites through a remote Maven repository (using the <dependencies> tag) and I'd prefer to keep the individual test suite projects as simple as possible.
I've tried using the Maven "-DskipTests" flag but it then deploys an empty zip file.
I've tried omitting the AUT configuration for the rcptt-maven-plugin in the test suite project to see if it will just compile (but not run) the tests. This fails with an error about not specifying an AUT.
I've tried using the Maven "-Dmaven.test.skip=true" but this still tries to first download an AUT (which is the slow part I'm trying to avoid)
Is there some obvious answer I'm missing here? Thanks very much!
[Updated on: Tue, 22 March 2016 09:16] Report message to a moderator
|
|
|
Re: Deploy RCPTT test suite using Maven [message #1727178 is a reply to message #1723924] |
Mon, 21 March 2016 02:26 |
Alexander Poga Messages: 3 Registered: February 2016 |
Junior Member |
|
|
For anyone finding this in the future, it seems the solution is to run using the Maven option: "-Dmaven.compile.skip=true". This should just upload the Maven project folder without running any tests.
Edit: scratch that, made a mistake and it looked like it worked. This will still try to execute tests before running.
What we really need is for RCPTT to bind the test execution to the "integration-test" phase so that we can use the standard arguments of "-DskipTests" or "-Dmaven.test.skip=true" to avoid having to run tests before the maven deploy.
[Updated on: Tue, 22 March 2016 09:18] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02719 seconds