Skip to content

Instantly share code, notes, and snippets.

@raul-arabaolaza
Last active March 22, 2018 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raul-arabaolaza/688119bd41f738ed7082d20faa21521b to your computer and use it in GitHub Desktop.
Save raul-arabaolaza/688119bd41f738ed7082d20faa21521b to your computer and use it in GitHub Desktop.
Run the PCT locally against a BO SNAPSHOT
  • Download PCT and execute mvn clean install
  • Download BO (whatever version/branch you want to test locally) and execute mvn clean install
  • Download URR set the appropriate version for BO (and it's dependencies) (The one generated in the previous step) and execute mvn clean package
  • Go to PCT folder and execute (make sure to modify paths according to your system)
java -jar plugins-compat-tester-cli/target/plugins-compat-tester-cli-0.0.3-SNAPSHOT.jar -reportFile /tmp/pct-test-selector/pct-0-report.xml -workDirectory /tmp/work -war ~/Workspace/Java/unified-release/products/cjt/target/cjt-2.60.1.2-SNAPSHOT.war -mvn /home/raul/bin/mvn -m2SettingsFile ~/.m2/settings.xml -skipTestCache true -includePlugins blueocean-jwt -localCheckoutDir /home/raul/Workspace/Java/blueocean-plugin/blueocean-jwt
/home/raul/bin/mvn -f pom-modified.xml --batch-mode --settings=/home/raul/.m2/settings.xml --define=argLine=-XX:MaxPermSize=128m --define=failIfNoTests=false --define=maven.test.redirectTestOutputToFile=false --define=concurrency=1 hpi:resolve-test-dependencies hpi:test-hpl surefire:test

Unfortunately for the moment testing more than one plugin at once requires plugins to be released, so for testing SNAPSHOTS you need to execute the last step for every BO plugin you want to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment