diff --git a/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt b/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt index aa634ef85..64702d56d 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt +++ b/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt @@ -1,9 +1,12 @@ ReadMe ---------- Run selenium tests in src/test/testng with Maven and TestNG + - mvn clean install -f testng-pom.xml + +Run Selenium tests in src/test/testng against an existing Archiva instance - Start Archiva - Configure admin user for archiva (match values in src/test/resources/testng.properties ) - modify src/test/resources/testng.properties as needed - - mvn clean install -f testng-pom.xml + - mvn clean install -f testng-pom.xml -Dcontainer-existing For the default values in the scripts, to pass all the tests, you need to add an artifact in internal repository. diff --git a/archiva-modules/archiva-web/archiva-webapp-test/testng-pom.xml b/archiva-modules/archiva-web/archiva-webapp-test/testng-pom.xml index 9ad35e62f..645d9e5cc 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/testng-pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp-test/testng-pom.xml @@ -124,110 +124,6 @@ - - org.codehaus.mojo - dependency-maven-plugin - - - unzip-archiva-webapp - generate-resources - - unpack - - - - - ${project.groupId} - archiva-webapp - ${project.version} - war - - - ${project.build.directory}/${container.name}conf/webapps/archiva - - - - prepare-provided-dependencies - generate-resources - - copy-dependencies - - - org.apache.derby,javax.mail,javax.activation - false - true - false - ${project.build.directory}/providedDependencies - - - - - - maven-antrun-plugin - - - generate-resources - - run - - - - - - - - - - - - - - - - - - - - - - - - - - copy-container-conf - package - - - - - - - - - - - - - - run - - - - check-archiva-loaded - integration-test - - - - - - - - run - - - - org.apache.maven.plugins maven-compiler-plugin @@ -261,51 +157,6 @@ true - - org.codehaus.cargo - cargo-maven2-plugin - 1.0 - - - start-container - pre-integration-test - - start - - - - stop-container - post-integration-test - - stop - - - - - false - - ${container.name} - - ${container.url} - ${project.build.directory}/installs/${container.name} - - ${project.build.directory}/logs/${container.name}.log - ${project.build.directory}/logs/${container.name}.out - 600000 - - ${project.build.directory}/appserver-base - ${project.build.directory}/appserver-base - - - - ${project.build.directory}/${container.name}conf - existing - - 9696 - - - - org.apache.maven.plugins maven-surefire-plugin @@ -327,10 +178,183 @@ + + create-container + + + !container + + + + + + org.codehaus.mojo + dependency-maven-plugin + + + unzip-archiva-webapp + generate-resources + + unpack + + + + + ${project.groupId} + archiva-webapp + ${project.version} + war + + + ${project.build.directory}/${container.name}conf/webapps/archiva + + + + prepare-provided-dependencies + generate-resources + + copy-dependencies + + + org.apache.derby,javax.mail,javax.activation + false + true + false + ${project.build.directory}/providedDependencies + + + + + + maven-antrun-plugin + + + generate-resources + + run + + + + + + + + + + + + + + + + + + + + + + + + + + copy-container-conf + package + + + + + + + + + + + + + + run + + + + check-archiva-loaded + integration-test + + + + + + + + run + + + + + + org.codehaus.cargo + cargo-maven2-plugin + 1.0 + + + start-container + pre-integration-test + + start + + + + stop-container + post-integration-test + + stop + + + + + false + + ${container.name} + + ${container.url} + ${project.build.directory}/installs/${container.name} + + ${project.build.directory}/logs/${container.name}.log + ${project.build.directory}/logs/${container.name}.out + 600000 + + ${project.build.directory}/appserver-base + ${project.build.directory}/appserver-base + + + + ${project.build.directory}/${container.name}conf + existing + + 9696 + + + + + + + + + existing-container + + + container + existing + + + + tomcat5x - true + + !container + tomcat5x