aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-projects
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-26 18:48:19 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-29 11:03:33 +0200
commit64ff328a9bc2cf0ea575599d37ea6dfe4ac6274e (patch)
tree86d40f3746b73da164aae16fce4eff24d2c0054f /it/it-projects
parente140eb43c7384fcaee539e9b1a07fae48cf95da2 (diff)
downloadsonarqube-64ff328a9bc2cf0ea575599d37ea6dfe4ac6274e.tar.gz
sonarqube-64ff328a9bc2cf0ea575599d37ea6dfe4ac6274e.zip
Fix execution of integration tests from command-line
Diffstat (limited to 'it/it-projects')
-rw-r--r--it/it-projects/qualitygate/xoo-sample/sonar-project.properties5
-rw-r--r--it/it-projects/qualitygate/xoo-sample/src/sample/Sample.xoo12
-rw-r--r--it/it-projects/qualitygate/xoo-sample/src/sample/Sample.xoo.measures11
-rw-r--r--it/it-projects/qualitygate/xoo-sample/src/sample/Sample2.xoo12
-rw-r--r--it/it-projects/qualitygate/xoo-sample/src/sample/Sample2.xoo.measures10
5 files changed, 50 insertions, 0 deletions
diff --git a/it/it-projects/qualitygate/xoo-sample/sonar-project.properties b/it/it-projects/qualitygate/xoo-sample/sonar-project.properties
new file mode 100644
index 00000000000..7fe05081304
--- /dev/null
+++ b/it/it-projects/qualitygate/xoo-sample/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src
+sonar.language=xoo
diff --git a/it/it-projects/qualitygate/xoo-sample/src/sample/Sample.xoo b/it/it-projects/qualitygate/xoo-sample/src/sample/Sample.xoo
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/it/it-projects/qualitygate/xoo-sample/src/sample/Sample.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/qualitygate/xoo-sample/src/sample/Sample.xoo.measures b/it/it-projects/qualitygate/xoo-sample/src/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..4f638a7a00b
--- /dev/null
+++ b/it/it-projects/qualitygate/xoo-sample/src/sample/Sample.xoo.measures
@@ -0,0 +1,11 @@
+ncloc:13
+complexity:7
+coverage:89.0
+test_execution_time:630
+sqale_index:4830
+#Used by dashboard/widgets tests
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2
diff --git a/it/it-projects/qualitygate/xoo-sample/src/sample/Sample2.xoo b/it/it-projects/qualitygate/xoo-sample/src/sample/Sample2.xoo
new file mode 100644
index 00000000000..6c1b6459c34
--- /dev/null
+++ b/it/it-projects/qualitygate/xoo-sample/src/sample/Sample2.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod2() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/qualitygate/xoo-sample/src/sample/Sample2.xoo.measures b/it/it-projects/qualitygate/xoo-sample/src/sample/Sample2.xoo.measures
new file mode 100644
index 00000000000..768513ad374
--- /dev/null
+++ b/it/it-projects/qualitygate/xoo-sample/src/sample/Sample2.xoo.measures
@@ -0,0 +1,10 @@
+ncloc:13
+complexity:7
+coverage:89.0
+test_execution_time:630
+sqale_index:4830
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2