aboutsummaryrefslogtreecommitdiffstats
path: root/tests/projects/testing/xoo-half-covered
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/projects/testing/xoo-half-covered
parent5dd574819854e9ce7e2f4e181e78153a7ecbf828 (diff)
downloadsonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.tar.gz
sonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.zip
Move integration tests to directory tests/
Diffstat (limited to 'tests/projects/testing/xoo-half-covered')
-rw-r--r--tests/projects/testing/xoo-half-covered/pom.xml47
-rw-r--r--tests/projects/testing/xoo-half-covered/sonar-project.properties5
-rw-r--r--tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo8
-rw-r--r--tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo.coverage1
-rw-r--r--tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo8
-rw-r--r--tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo.coverage1
6 files changed, 70 insertions, 0 deletions
diff --git a/tests/projects/testing/xoo-half-covered/pom.xml b/tests/projects/testing/xoo-half-covered/pom.xml
new file mode 100644
index 00000000000..25b230c7864
--- /dev/null
+++ b/tests/projects/testing/xoo-half-covered/pom.xml
@@ -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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.sonarsource.it.exclusions</groupId>
+ <artifactId>java-half-covered</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>Sonar :: Integration Tests :: Java Half Covered</name>
+
+ <url>http://www.javahalfcovered.org</url>
+
+ <issueManagement>
+ <system>jira</system>
+ <url>http://jira.codehaus.org/browse/JAVAHALFCOVERED</url>
+ </issueManagement>
+
+ <scm>
+ <connection>scm:git:git@github.com:SonarSource/javahalfcovered.git</connection>
+ <developerConnection>scm:git:git@github.com:SonarSource/javahalfcovered.git</developerConnection>
+ <url>https://github.com/SonarSource/javahalfcovered</url>
+ </scm>
+
+ <properties>
+ <sonar.scm.disabled>true</sonar.scm.disabled>
+ </properties>
+
+ <ciManagement>
+ <system>bamboo</system>
+ <url>http://bamboo.ci.codehaus.org/browse/JAVAHALFCOVERED</url>
+ </ciManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.easytesting</groupId>
+ <artifactId>fest-assert</artifactId>
+ <version>1.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/tests/projects/testing/xoo-half-covered/sonar-project.properties b/tests/projects/testing/xoo-half-covered/sonar-project.properties
new file mode 100644
index 00000000000..ea64e84c3a0
--- /dev/null
+++ b/tests/projects/testing/xoo-half-covered/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=xoo-half-covered
+sonar.projectName=Sample IT Coverage
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo
diff --git a/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo b/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo
new file mode 100644
index 00000000000..fc6abc4a88e
--- /dev/null
+++ b/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo
@@ -0,0 +1,8 @@
+package org.sonar.tests.halfcovered;
+
+public class Covered {
+
+ public int returnOne() {
+ return 1;
+ }
+}
diff --git a/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo.coverage b/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo.coverage
new file mode 100644
index 00000000000..0f42ea6e2b5
--- /dev/null
+++ b/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo.coverage
@@ -0,0 +1 @@
+6:1
diff --git a/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo b/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo
new file mode 100644
index 00000000000..25f413c7c5a
--- /dev/null
+++ b/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo
@@ -0,0 +1,8 @@
+package org.sonar.tests.halfcovered;
+
+public class UnCovered {
+
+ public int returnTwo() {
+ return 2;
+ }
+}
diff --git a/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo.coverage b/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo.coverage
new file mode 100644
index 00000000000..126ba135e20
--- /dev/null
+++ b/tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo.coverage
@@ -0,0 +1 @@
+6:0