SQ 9.7
This commit is contained in:
47
tests/pom.xml
Normal file
47
tests/pom.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.sonarqube</groupId>
|
||||
<artifactId>sonarscanner-maven-aggregate</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>tests</artifactId>
|
||||
|
||||
<name>Tests</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.sonarqube</groupId>
|
||||
<artifactId>module1</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonarqube</groupId>
|
||||
<artifactId>module2</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>report</id>
|
||||
<goals>
|
||||
<goal>report-aggregate</goal>
|
||||
</goals>
|
||||
<phase>verify</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
19
tests/src/test/java/com/acme/its/ModulesTest.java
Normal file
19
tests/src/test/java/com/acme/its/ModulesTest.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.acme.its;
|
||||
|
||||
import com.acme.module1.Module1;
|
||||
import com.acme.module2.Module2;
|
||||
import org.junit.Test;
|
||||
|
||||
public class ModulesTest {
|
||||
|
||||
@Test
|
||||
public void integrationTest1() {
|
||||
new Module1().coveredByIntegrationTest();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void integrationTest2() {
|
||||
new Module2().coveredByIntegrationTest();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user