- modify src/test/resources/testng.properties as needed
- mvn clean install -Dcontainer-existing
+The Cargo installations are stored outside of target to avoid multiple downloads.
+To remove the Cargo installations and re-download them next run, use:
+ - mvn -Pclean-cargo clean
+
For the default values in the scripts, to pass all the tests, you need to add an artifact in internal repository.
Run Selenium tests in src/test/it with Maven and JUnit
- - mvn clean install -f junit-pom.xml
\ No newline at end of file
+ - mvn clean install -f junit-pom.xml
<fileset dir="src/test/${container.name}" />
</copy>
<copy
- todir="${project.build.directory}/installs/${container.name}/apache-tomcat-${tomcat5x.version}/apache-tomcat-${tomcat5x.version}/common/lib">
+ todir="${cargo.install.dir}/${container.name}/apache-tomcat-${tomcat5x.version}/apache-tomcat-${tomcat5x.version}/common/lib">
<fileset dir="${project.build.directory}/providedDependencies">
<include name="**/*.jar" />
</fileset>
<containerId>${container.name}</containerId>
<zipUrlInstaller>
<url>${container.url}</url>
- <installDir>${project.build.directory}/installs/${container.name}</installDir>
+ <installDir>${cargo.install.dir}/${container.name}</installDir>
</zipUrlInstaller>
<log>${project.build.directory}/logs/${container.name}.log</log>
<output>${project.build.directory}/logs/${container.name}.out</output>
<selenium.browser>*custom ${browserPath}</selenium.browser>
</properties>
</profile>
+ <profile>
+ <id>clean-cargo</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${cargo.install.dir}</directory>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>headless</id>
<build>
<properties>
<tomcat5x.version>5.5.27</tomcat5x.version>
<cargo.wait>false</cargo.wait>
+ <cargo.install.dir>cargo-installs</cargo.install.dir>
</properties>
</project>