aboutsummaryrefslogtreecommitdiffstats
path: root/tests/projects/measure
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/measure
parent5dd574819854e9ce7e2f4e181e78153a7ecbf828 (diff)
downloadsonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.tar.gz
sonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.zip
Move integration tests to directory tests/
Diffstat (limited to 'tests/projects/measure')
-rw-r--r--tests/projects/measure/xoo-history-v1/sonar-project.properties5
-rw-r--r--tests/projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo12
-rw-r--r--tests/projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo.measures2
-rw-r--r--tests/projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo12
-rw-r--r--tests/projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo.measures2
-rw-r--r--tests/projects/measure/xoo-history-v2/sonar-project.properties5
-rw-r--r--tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo12
-rw-r--r--tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures3
-rw-r--r--tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo16
-rw-r--r--tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures3
-rw-r--r--tests/projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo12
-rw-r--r--tests/projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures2
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v1/sonar-project.properties6
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo13
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.measures4
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.scm14
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v2/sonar-project.properties6
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo17
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.measures4
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.scm18
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v3/sonar-project.properties6
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo22
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.measures4
-rw-r--r--tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.scm23
24 files changed, 223 insertions, 0 deletions
diff --git a/tests/projects/measure/xoo-history-v1/sonar-project.properties b/tests/projects/measure/xoo-history-v1/sonar-project.properties
new file mode 100644
index 00000000000..e01f062e51b
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v1/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo \ No newline at end of file
diff --git a/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo b/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo
new file mode 100644
index 00000000000..2b0288fc971
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class ClassToModify {
+
+ public ClassToModify(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo.measures b/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo.measures
new file mode 100644
index 00000000000..7812e4167fb
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1
diff --git a/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo b/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo
new file mode 100644
index 00000000000..2b0288fc971
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class ClassToModify {
+
+ public ClassToModify(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo.measures b/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo.measures
new file mode 100644
index 00000000000..7812e4167fb
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1
diff --git a/tests/projects/measure/xoo-history-v2/sonar-project.properties b/tests/projects/measure/xoo-history-v2/sonar-project.properties
new file mode 100644
index 00000000000..e01f062e51b
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v2/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo \ No newline at end of file
diff --git a/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo
new file mode 100644
index 00000000000..b0fd1087030
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class ClassAdded {
+
+ public ClassAdded(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures
new file mode 100644
index 00000000000..66ba834e1ef
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures
@@ -0,0 +1,3 @@
+ncloc:12
+classes:1
+
diff --git a/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo
new file mode 100644
index 00000000000..393111bbab0
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo
@@ -0,0 +1,16 @@
+package sample;
+
+public class ClassToModify {
+
+ public ClassToModify(int i) {
+ int j = i++;
+ }
+
+ public String addedMethod() {
+ return "This method was added in v2";
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures
new file mode 100644
index 00000000000..71d60758637
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures
@@ -0,0 +1,3 @@
+ncloc:16
+classes:1
+
diff --git a/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo
new file mode 100644
index 00000000000..2b0288fc971
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class ClassToModify {
+
+ public ClassToModify(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures
new file mode 100644
index 00000000000..7812e4167fb
--- /dev/null
+++ b/tests/projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v1/sonar-project.properties b/tests/projects/measure/xoo-new-debt-ratio-v1/sonar-project.properties
new file mode 100644
index 00000000000..4ea4c91bacb
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v1/sonar-project.properties
@@ -0,0 +1,6 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo
+sonar.scm.provider=xoo
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo b/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo
new file mode 100644
index 00000000000..467e82d8f2c
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo
@@ -0,0 +1,13 @@
+package sample;
+
+// class comment
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String method1() {
+ return "hello";
+ }
+}
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..874fe7bfea5
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.measures
@@ -0,0 +1,4 @@
+ncloc:9
+comment_lines:5
+ncloc_data:1=1;2=0;3=0;4=1;5=0;6=1;7=1;8=1;9=0;10=1;11=1;12=1;13=1;14=0
+classes:1
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.scm b/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.scm
new file mode 100644
index 00000000000..c838f29021f
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.scm
@@ -0,0 +1,14 @@
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
+1,user1,2016-08-01
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v2/sonar-project.properties b/tests/projects/measure/xoo-new-debt-ratio-v2/sonar-project.properties
new file mode 100644
index 00000000000..4ea4c91bacb
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v2/sonar-project.properties
@@ -0,0 +1,6 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo
+sonar.scm.provider=xoo
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo b/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo
new file mode 100644
index 00000000000..882793391e0
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo
@@ -0,0 +1,17 @@
+package sample;
+
+// class comment
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String method1() {
+ return "hello";
+ }
+
+ private String method2() {
+ return "hello2";
+ }
+}
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..98f63c1fe47
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.measures
@@ -0,0 +1,4 @@
+ncloc:12
+comment_lines:6
+ncloc_data:1=1;2=0;3=0;4=1;5=0;6=1;7=1;8=1;9=0;10=1;11=1;12=1;13=0;14=1;15=1;16=1;17=1;18=0
+classes:1
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.scm b/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.scm
new file mode 100644
index 00000000000..bc69cd71308
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.scm
@@ -0,0 +1,18 @@
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+2,user2,2016-09-17
+2,user2,2016-09-17
+2,user2,2016-09-17
+2,user2,2016-09-17
+1,user1,2016-09-01
+1,user1,2016-09-01
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v3/sonar-project.properties b/tests/projects/measure/xoo-new-debt-ratio-v3/sonar-project.properties
new file mode 100644
index 00000000000..4ea4c91bacb
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v3/sonar-project.properties
@@ -0,0 +1,6 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo
+sonar.scm.provider=xoo
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo b/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo
new file mode 100644
index 00000000000..0b9e023d079
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo
@@ -0,0 +1,22 @@
+package sample;
+
+// class comment
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String method1() {
+ return "hello";
+ }
+
+ private String method2() {
+ return "hello2";
+ }
+
+ private String method3() {
+ String e = "hello3";
+ return e;
+ }
+}
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..d467f571f3f
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.measures
@@ -0,0 +1,4 @@
+ncloc:16
+comment_lines:7
+ncloc_data:1=1;2=0;3=0;4=1;5=0;6=1;7=1;8=1;9=0;10=1;11=1;12=1;13=0;14=1;15=1;16=1;17=0;18=1;19=1;20=1;21=1;22=1;23=0
+classes:1
diff --git a/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.scm b/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.scm
new file mode 100644
index 00000000000..09a256f6527
--- /dev/null
+++ b/tests/projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.scm
@@ -0,0 +1,23 @@
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+1,user1,2016-09-01
+2,user2,2016-09-17
+2,user2,2016-09-17
+2,user2,2016-09-17
+2,user2,2016-09-17
+3,user2,2016-09-20
+3,user2,2016-09-20
+3,user2,2016-09-20
+3,user2,2016-09-20
+3,user2,2016-09-20
+1,user1,2016-09-01
+1,user1,2016-09-01