From 70b6899988da0d2ba0a39b846e4f1bd3fa27304f Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 23 Jun 2017 21:31:56 +0200 Subject: Move integration tests to directory tests/ --- tests/projects/testing/xoo-half-covered/pom.xml | 47 ++++++++++++++++++++++ .../xoo-half-covered/sonar-project.properties | 5 +++ .../xoo/org/sonar/tests/halfcovered/Covered.xoo | 8 ++++ .../sonar/tests/halfcovered/Covered.xoo.coverage | 1 + .../xoo/org/sonar/tests/halfcovered/UnCovered.xoo | 8 ++++ .../sonar/tests/halfcovered/UnCovered.xoo.coverage | 1 + 6 files changed, 70 insertions(+) create mode 100644 tests/projects/testing/xoo-half-covered/pom.xml create mode 100644 tests/projects/testing/xoo-half-covered/sonar-project.properties create mode 100644 tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo create mode 100644 tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/Covered.xoo.coverage create mode 100644 tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo create mode 100644 tests/projects/testing/xoo-half-covered/src/main/xoo/org/sonar/tests/halfcovered/UnCovered.xoo.coverage (limited to 'tests/projects/testing/xoo-half-covered') 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 @@ + + + 4.0.0 + com.sonarsource.it.exclusions + java-half-covered + 1.0-SNAPSHOT + Sonar :: Integration Tests :: Java Half Covered + + http://www.javahalfcovered.org + + + jira + http://jira.codehaus.org/browse/JAVAHALFCOVERED + + + + scm:git:git@github.com:SonarSource/javahalfcovered.git + scm:git:git@github.com:SonarSource/javahalfcovered.git + https://github.com/SonarSource/javahalfcovered + + + + true + + + + bamboo + http://bamboo.ci.codehaus.org/browse/JAVAHALFCOVERED + + + + + junit + junit + 4.8.2 + test + + + org.easytesting + fest-assert + 1.4 + test + + + + 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 -- cgit v1.2.3