aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/test-resources
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-11-26 17:52:38 +0100
committersonartech <sonartech@sonarsource.com>2018-11-30 11:20:47 +0100
commit4faa730d018c2f9b6f690174516e875db5ce8308 (patch)
treefdabec6438ee2ed873ac8b80882b1372a7d89625 /sonar-plugin-api/test-resources
parent417280ac3f309cc5ac019849a616c34ac042ccd4 (diff)
downloadsonarqube-4faa730d018c2f9b6f690174516e875db5ce8308.tar.gz
sonarqube-4faa730d018c2f9b6f690174516e875db5ce8308.zip
Move scan test resources outside IDE classpath
That fixes the compatibility with Idea 2018.3
Diffstat (limited to 'sonar-plugin-api/test-resources')
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/.gitignore1
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/sonar-project.properties6
l---------sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/testx1
l---------sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/xources1
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/sonar-project.properties6
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo11
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo.measures7
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo.scm11
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo8
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo.measures2
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo.scm8
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/helloscala.xoo6
-rw-r--r--sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/helloscala.xoo.measures2
13 files changed, 70 insertions, 0 deletions
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/.gitignore b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/.gitignore
new file mode 100644
index 00000000000..ecbefd4f19d
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/.gitignore
@@ -0,0 +1 @@
+.sonar
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/sonar-project.properties b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/sonar-project.properties
new file mode 100644
index 00000000000..8810e376701
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/sonar-project.properties
@@ -0,0 +1,6 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=0.1-SNAPSHOT
+sonar.sources=xources
+sonar.tests=testx
+sonar.language=xoo
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/testx b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/testx
new file mode 120000
index 00000000000..7385ebd51cf
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/testx
@@ -0,0 +1 @@
+../sample/testx/ \ No newline at end of file
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/xources b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/xources
new file mode 120000
index 00000000000..15dca9d90d2
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample-with-symlink/xources
@@ -0,0 +1 @@
+../sample/xources/ \ No newline at end of file
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/sonar-project.properties b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/sonar-project.properties
new file mode 100644
index 00000000000..8810e376701
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/sonar-project.properties
@@ -0,0 +1,6 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=0.1-SNAPSHOT
+sonar.sources=xources
+sonar.tests=testx
+sonar.language=xoo
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo
new file mode 100644
index 00000000000..8c0967e496f
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo
@@ -0,0 +1,11 @@
+package org.sonar.tests;
+
+import org.junit.Test;
+
+public class ClassOneTest {
+
+ @Test
+ public void nothing() {
+
+ }
+}
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo.measures b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo.measures
new file mode 100644
index 00000000000..23b08dc0e0e
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo.measures
@@ -0,0 +1,7 @@
+lines:11
+ncloc:7
+tests:1
+test_execution_time:1
+skipped_tests:0
+test_errors:0
+test_failures:0
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo.scm b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo.scm
new file mode 100644
index 00000000000..2cec35b8a72
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/testx/ClassOneTest.xoo.scm
@@ -0,0 +1,11 @@
+1,user1,2013-01-04
+1,user1,2013-01-04
+1,user1,2013-01-04
+1,user1,2013-01-04
+2,user2,2013-01-05
+2,user2,2013-01-05
+3,user3,2013-01-06
+4,user4,2013-01-07
+4,user4,2013-01-07
+4,user4,2013-01-07
+4,user4,2013-01-07 \ No newline at end of file
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo
new file mode 100644
index 00000000000..1d9c60d56b7
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo
@@ -0,0 +1,8 @@
+package hello;
+
+public class HelloJava {
+
+ public static void main(String[] args) {
+ System.out.println("Hello");
+ }
+} \ No newline at end of file
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo.measures b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo.measures
new file mode 100644
index 00000000000..9eaf8ba2549
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:3
+complexity:1
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo.scm b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo.scm
new file mode 100644
index 00000000000..03a9de2f486
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/HelloJava.xoo.scm
@@ -0,0 +1,8 @@
+1,user1,2013-01-04
+1,user1,2013-01-04
+1,user1,2013-01-04
+1,user1,2013-01-04
+2,user2,2013-01-05
+2,user2,2013-01-05
+3,user3,2013-01-06
+4,user4,2013-01-07 \ No newline at end of file
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/helloscala.xoo b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/helloscala.xoo
new file mode 100644
index 00000000000..53cb085156c
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/helloscala.xoo
@@ -0,0 +1,6 @@
+ object HelloWorld {
+ def main(args: Array[String]) {
+ println("Hello, world of xoo!")
+ }
+ }
+ \ No newline at end of file
diff --git a/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/helloscala.xoo.measures b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/helloscala.xoo.measures
new file mode 100644
index 00000000000..d2c8386aed1
--- /dev/null
+++ b/sonar-plugin-api/test-resources/org/sonar/api/filesystem/sample/xources/hello/helloscala.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:5
+complexity:2