aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pom.xml
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-06-23 21:31:56 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-06-25 23:42:50 +0200
commit70b6899988da0d2ba0a39b846e4f1bd3fa27304f (patch)
tree1ac093a87e0fba6b07c6feb6aceae89bdd9663cf /tests/pom.xml
parent5dd574819854e9ce7e2f4e181e78153a7ecbf828 (diff)
downloadsonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.tar.gz
sonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.zip
Move integration tests to directory tests/
Diffstat (limited to 'tests/pom.xml')
-rw-r--r--tests/pom.xml187
1 files changed, 179 insertions, 8 deletions
diff --git a/tests/pom.xml b/tests/pom.xml
index dc079ee0b75..2409cdfda33 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -10,24 +10,174 @@
<version>6.5-SNAPSHOT</version>
</parent>
+ <groupId>org.sonarsource.sonarqube.tests</groupId>
<artifactId>tests</artifactId>
- <name>SonarQube Perf and Upgrade Tests</name>
- <packaging>pom</packaging>
+ <name>SonarQube Integration Tests</name>
+ <description>Integration, performance, upgrade tests</description>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
<source.skip>true</source.skip>
<enforcer.skip>true</enforcer.skip>
+ <skipSanityChecks>true</skipSanityChecks>
<sqZipDir>../sonar-application/target</sqZipDir>
+ <category>*</category>
+ <skipIts>false</skipIts>
+ <jetty.version>9.3.11.v20160721</jetty.version>
</properties>
- <modules>
- <module>perf</module>
- <module>upgrade</module>
- </modules>
+ <dependencies>
+ <!-- must be declared first -->
+ <dependency>
+ <groupId>org.sonarsource.orchestrator</groupId>
+ <artifactId>sonar-orchestrator</artifactId>
+ <version>${orchestrator.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.sonarsource.sonarqube</groupId>
+ <artifactId>sonar-application</artifactId>
+ <version>${project.parent.version}</version>
+ <type>zip</type>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.sonarsource.sonarqube</groupId>
+ <artifactId>sonar-ws</artifactId>
+ <version>${project.parent.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.codeborne</groupId>
+ <artifactId>selenide</artifactId>
+ <version>4.4.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <!-- required for selenide -->
+ <version>21.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-ws-client</artifactId>
+ <version>5.0</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.assertj</groupId>
+ <artifactId>assertj-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.assertj</groupId>
+ <artifactId>assertj-guava</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-all</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.googlecode.json-simple</groupId>
+ <artifactId>json-simple</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.skyscreamer</groupId>
+ <artifactId>jsonassert</artifactId>
+ <version>1.2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jsoup</groupId>
+ <artifactId>jsoup</artifactId>
+ <version>1.8.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.squareup.okhttp3</groupId>
+ <artifactId>mockwebserver</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-email</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.subethamail</groupId>
+ <artifactId>subethasmtp</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-server</artifactId>
+ <version>${jetty.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-servlet</artifactId>
+ <version>${jetty.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-proxy</artifactId>
+ <version>${jetty.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.sonarsource.scanner.cli</groupId>
+ <artifactId>sonar-scanner-cli</artifactId>
+ <version>2.7</version>
+ <type>zip</type>
+ </dependency>
+
+ <!-- JDBC drivers -->
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>mssql-jdbc</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>-Dsonar.runtimeVersion=${project.version}
+ -Dmaven.localRepository=${settings.localRepository}
+ </argLine>
+ <skipTests>${skipIts}</skipTests>
+ <includes>
+ <include>*/*${category}Suite.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
<profiles>
<profile>
+ <!-- TODO rename to oracle -->
+ <id>with-db-drivers</id>
+ <activation>
+ <property>
+ <name>with-db-drivers</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc6</artifactId>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <profile>
<id>qa</id>
<activation>
<property>
@@ -50,14 +200,35 @@
<configuration>
<artifactItems>
<artifactItem>
- <groupId>${project.groupId}</groupId>
+ <groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-application</artifactId>
<version>${project.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>
</artifactItems>
- <outputDirectory>${sqZipDir}</outputDirectory>
+ <outputDirectory>${project.basedir}/../sonar-application/target</outputDirectory>
+ <overWriteReleases>true</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-xoo-plugin</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.sonarsource.sonarqube</groupId>
+ <artifactId>sonar-xoo-plugin</artifactId>
+ <version>${project.version}</version>
+ <type>sonar-plugin</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${project.basedir}/../plugins/sonar-xoo-plugin/target</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>