06-28-2012 01:32 PM
I'm trying to compare runs of WebDriver in different snapshots against each other. So I want to run the tests using an older snapshot (whether hosted on the public maven repos or in my own local repo).
To run the WebDriver tests, here's what I do:
$ git clone http://github.com/nuxeo/nuxeo-distribution.git
$ git checkout -b 5.6-SNAPSHOT origin/5.6-SNAPSHOT
$ cd nuxeo-distribtution/nuxeo-distribution-dm/ftest/webdriver/
$ mvn verify
Magic happens, and the WebDriver tests start running. But every day I execute the command, it will pull that day's snapshot. Is there anyway I can run yesterday's snapshot or the one from last week? Thanks!
06-28-2012 01:56 PM
Not without rebuilding the whole source code. "SNAPSHOT" is a Maven keyword which always point to the latest available snapshot artifact.
You could use a different Maven repository (~/.m2/repository by default) every day. That way, each repository will contain the artifacts from the wanted day. Then, if you want to rerun the tests against a previous day, you will have to run Maven in offline mode (-o) or to set the snapshots updatePolicy to "never" in your Maven settings (~/.m2/settings.xml), and to make Maven use the wanted repository using an alias or with the settings property localRepository.
What is the purpose of the comparison? Note the 5.6-SNAPSHOT artifacts are made publicly available only if the tests run fine.
06-28-2012 01:56 PM
Not without rebuilding the whole source code. "SNAPSHOT" is a Maven keyword which always point to the latest available snapshot artifact.
You could use a different Maven repository (~/.m2/repository by default) every day. That way, each repository will contain the artifacts from the wanted day. Then, if you want to rerun the tests against a previous day, you will have to run Maven in offline mode (-o) or to set the snapshots updatePolicy to "never" in your Maven settings (~/.m2/settings.xml), and to make Maven use the wanted repository using an alias or with the settings property localRepository.
What is the purpose of the comparison? Note the 5.6-SNAPSHOT artifacts are made publicly available only if the tests run fine.
06-28-2012 02:33 PM
That will most likely work. Thanks!
07-04-2012 11:31 AM
You can run the tests against a Nuxeo instance that you've started yourself using:
mvn -o test-compile
mvn -o org.apache.maven.plugins:maven-failsafe-plugin:integration-test -Dlog4j.configuration=src/main/resources/log4j.xml -Dnuxeo.log.dir=target
This doc has been added to nuxeo-distribution-dm/ftest/webdriver/README.md.
07-05-2012 01:24 AM
Cool. This was the next thing I needed, and I was starting to spend time figuring out how to do it.
07-10-2012 08:29 PM
The command you specified fails with "No target specified" for nuxeo-distribution-dm/ftest/webdriver. I've asked a related question here
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.