From c347e99a8b96cee0a14ed16e1cbd2e2fc65903b0 Mon Sep 17 00:00:00 2001 From: Mark Rekveld Date: Tue, 29 Sep 2020 10:47:08 +0200 Subject: SQSCANNER-44 - Move to Xoo for testing (#92) --- it/projects/bad-source-dirs/src/Hello.js | 2 -- it/projects/bad-source-dirs/src/Hello.xoo | 2 ++ it/projects/bad-source-dirs/src/Hello.xoo.measures | 1 + it/projects/basedir-with-source/Hello.js | 4 ---- it/projects/basedir-with-source/Hello.xoo | 4 ++++ it/projects/basedir-with-source/Hello.xoo.measures | 1 + .../using-config-file-prop/module1/src/Hello.js | 2 -- .../using-config-file-prop/module1/src/Hello.xoo | 2 ++ .../module1/src/Hello.xoo.measures | 1 + .../using-config-file-prop/module2/src/Hello.js | 2 -- .../using-config-file-prop/module2/src/Hello.xoo | 2 ++ .../module2/src/Hello.xoo.measures | 1 + .../modules/module1/src/Hello.js | 2 -- .../modules/module1/src/Hello.xoo | 2 ++ .../modules/module1/src/Hello.xoo.measures | 1 + .../modules/module2/src/Hello.js | 2 -- .../modules/module2/src/Hello.xoo | 2 ++ .../modules/module2/src/Hello.xoo.measures | 1 + .../module-path-with-space/my module 1/src/Hello.js | 2 -- .../my module 1/src/Hello.xoo | 2 ++ .../my module 1/src/Hello.xoo.measures | 1 + .../module-path-with-space/my module 2/src/Hello.js | 2 -- .../my module 2/src/Hello.xoo | 2 ++ .../my module 2/src/Hello.xoo.measures | 1 + .../module1/src1/Hello.js | 2 -- .../module1/src1/Hello.xoo | 2 ++ .../module1/src1/Hello.xoo.measures | 1 + .../module2/src2/Hello.js | 2 -- .../module2/src2/Hello.xoo | 2 ++ .../module2/src2/Hello.xoo.measures | 1 + .../unexisting-base-dir/module1/src/Hello.js | 2 -- .../unexisting-base-dir/module1/src/Hello.xoo | 2 ++ .../module1/src/Hello.xoo.measures | 1 + .../unexisting-base-dir/module2/src/Hello.js | 2 -- .../unexisting-base-dir/module2/src/Hello.xoo | 2 ++ .../module2/src/Hello.xoo.measures | 1 + .../unexisting-config-file/module1/src/Hello.js | 2 -- .../unexisting-config-file/module1/src/Hello.xoo | 2 ++ .../module1/src/Hello.xoo.measures | 1 + .../unexisting-config-file/module2/src/Hello.js | 2 -- .../unexisting-config-file/module2/src/Hello.xoo | 2 ++ .../module2/src/Hello.xoo.measures | 1 + .../module1/src/Hello.js | 2 -- .../module1/src/Hello.xoo | 2 ++ .../module1/src/Hello.xoo.measures | 1 + .../module2/src/Hello.js | 2 -- .../module2/src/Hello.xoo | 2 ++ .../module2/src/Hello.xoo.measures | 1 + .../module1/src/Hello.js | 2 -- .../module1/src/Hello.xoo | 2 ++ .../module1/src/Hello.xoo.measures | 1 + .../module2/src/Hello.js | 2 -- .../module2/src/Hello.xoo | 2 ++ .../module2/src/Hello.xoo.measures | 1 + .../src/basic/Hello.js | 2 -- .../src/basic/Hello.xoo | 2 ++ .../src/basic/Hello.xoo.measures | 1 + .../src/basic/World.js | 2 -- .../src/basic/World.xoo | 2 ++ .../src/basic/World.xoo.measures | 1 + it/projects/override-working-dir/src/Hello.js | 2 -- it/projects/override-working-dir/src/Hello.xoo | 2 ++ .../override-working-dir/src/Hello.xoo.measures | 1 + .../simple-sample-no-properties/src/basic/Hello.js | 2 -- .../simple-sample-no-properties/src/basic/Hello.xoo | 2 ++ .../src/basic/Hello.xoo.measures | 1 + .../simple-sample-no-properties/src/basic/World.js | 2 -- .../simple-sample-no-properties/src/basic/World.xoo | 2 ++ .../src/basic/World.xoo.measures | 1 + it/projects/simple-sample/src/basic/Hello.js | 2 -- it/projects/simple-sample/src/basic/Hello.xoo | 2 ++ .../simple-sample/src/basic/Hello.xoo.measures | 1 + it/projects/simple-sample/src/basic/World.js | 2 -- it/projects/simple-sample/src/basic/World.xoo | 2 ++ .../simple-sample/src/basic/World.xoo.measures | 1 + .../com/sonarsource/scanner/it/ScannerTest.java | 4 ++-- .../scanner/it/SonarScannerTestSuite.java | 21 ++++----------------- 77 files changed, 83 insertions(+), 71 deletions(-) delete mode 100644 it/projects/bad-source-dirs/src/Hello.js create mode 100644 it/projects/bad-source-dirs/src/Hello.xoo create mode 100644 it/projects/bad-source-dirs/src/Hello.xoo.measures delete mode 100644 it/projects/basedir-with-source/Hello.js create mode 100644 it/projects/basedir-with-source/Hello.xoo create mode 100644 it/projects/basedir-with-source/Hello.xoo.measures delete mode 100644 it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.js create mode 100644 it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.xoo create mode 100644 it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.js create mode 100644 it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.xoo create mode 100644 it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.js create mode 100644 it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.xoo create mode 100644 it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.js create mode 100644 it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.xoo create mode 100644 it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.js create mode 100644 it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.xoo create mode 100644 it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.js create mode 100644 it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.xoo create mode 100644 it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.js create mode 100644 it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.xoo create mode 100644 it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.xoo.measures delete mode 100644 it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.js create mode 100644 it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.xoo create mode 100644 it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.xoo.measures delete mode 100644 it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.js create mode 100644 it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.xoo create mode 100644 it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.js create mode 100644 it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.xoo create mode 100644 it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.js create mode 100644 it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.xoo create mode 100644 it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.js create mode 100644 it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.xoo create mode 100644 it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.js create mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.xoo create mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.js create mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.xoo create mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.js create mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.xoo create mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.xoo.measures delete mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.js create mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.xoo create mode 100644 it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.xoo.measures delete mode 100644 it/projects/override-project-settings-path/src/basic/Hello.js create mode 100644 it/projects/override-project-settings-path/src/basic/Hello.xoo create mode 100644 it/projects/override-project-settings-path/src/basic/Hello.xoo.measures delete mode 100644 it/projects/override-project-settings-path/src/basic/World.js create mode 100644 it/projects/override-project-settings-path/src/basic/World.xoo create mode 100644 it/projects/override-project-settings-path/src/basic/World.xoo.measures delete mode 100644 it/projects/override-working-dir/src/Hello.js create mode 100644 it/projects/override-working-dir/src/Hello.xoo create mode 100644 it/projects/override-working-dir/src/Hello.xoo.measures delete mode 100644 it/projects/simple-sample-no-properties/src/basic/Hello.js create mode 100644 it/projects/simple-sample-no-properties/src/basic/Hello.xoo create mode 100644 it/projects/simple-sample-no-properties/src/basic/Hello.xoo.measures delete mode 100644 it/projects/simple-sample-no-properties/src/basic/World.js create mode 100644 it/projects/simple-sample-no-properties/src/basic/World.xoo create mode 100644 it/projects/simple-sample-no-properties/src/basic/World.xoo.measures delete mode 100644 it/projects/simple-sample/src/basic/Hello.js create mode 100644 it/projects/simple-sample/src/basic/Hello.xoo create mode 100644 it/projects/simple-sample/src/basic/Hello.xoo.measures delete mode 100644 it/projects/simple-sample/src/basic/World.js create mode 100644 it/projects/simple-sample/src/basic/World.xoo create mode 100644 it/projects/simple-sample/src/basic/World.xoo.measures (limited to 'it') diff --git a/it/projects/bad-source-dirs/src/Hello.js b/it/projects/bad-source-dirs/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/bad-source-dirs/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/bad-source-dirs/src/Hello.xoo b/it/projects/bad-source-dirs/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/bad-source-dirs/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/bad-source-dirs/src/Hello.xoo.measures b/it/projects/bad-source-dirs/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/bad-source-dirs/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/basedir-with-source/Hello.js b/it/projects/basedir-with-source/Hello.js deleted file mode 100644 index dffa936..0000000 --- a/it/projects/basedir-with-source/Hello.js +++ /dev/null @@ -1,4 +0,0 @@ -function hello() { - let i=356; - if (true) i=5658; -} diff --git a/it/projects/basedir-with-source/Hello.xoo b/it/projects/basedir-with-source/Hello.xoo new file mode 100644 index 0000000..dffa936 --- /dev/null +++ b/it/projects/basedir-with-source/Hello.xoo @@ -0,0 +1,4 @@ +function hello() { + let i=356; + if (true) i=5658; +} diff --git a/it/projects/basedir-with-source/Hello.xoo.measures b/it/projects/basedir-with-source/Hello.xoo.measures new file mode 100644 index 0000000..1738af9 --- /dev/null +++ b/it/projects/basedir-with-source/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:4 diff --git a/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.js b/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.xoo b/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.xoo.measures b/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/advanced/using-config-file-prop/module1/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.js b/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.xoo b/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.xoo.measures b/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/advanced/using-config-file-prop/module2/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.js b/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.xoo b/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.xoo.measures b/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/customization/deep-path-for-modules/modules/module1/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.js b/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.xoo b/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.xoo.measures b/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/customization/deep-path-for-modules/modules/module2/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.js b/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.xoo b/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.xoo.measures b/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/customization/module-path-with-space/my module 1/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.js b/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.xoo b/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.xoo.measures b/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/customization/module-path-with-space/my module 2/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.js b/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.xoo b/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.xoo.measures b/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/customization/overwriting-parent-properties/module1/src1/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.js b/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.xoo b/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.xoo.measures b/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/customization/overwriting-parent-properties/module2/src2/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.js b/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.xoo b/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.xoo.measures b/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/failures/unexisting-base-dir/module1/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.js b/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.xoo b/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.xoo.measures b/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/failures/unexisting-base-dir/module2/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.js b/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.xoo b/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.xoo.measures b/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/failures/unexisting-config-file/module1/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.js b/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.xoo b/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.xoo.measures b/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/failures/unexisting-config-file/module2/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.js b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.xoo b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.xoo.measures b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module1/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.js b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.xoo b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.xoo.measures b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/simplest/simplest-with-props-on-each-module/module2/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.js b/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.xoo b/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.xoo.measures b/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/simplest/simplest-with-props-on-root/module1/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.js b/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.xoo b/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.xoo.measures b/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/multi-module/simplest/simplest-with-props-on-root/module2/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/override-project-settings-path/src/basic/Hello.js b/it/projects/override-project-settings-path/src/basic/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/override-project-settings-path/src/basic/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/override-project-settings-path/src/basic/Hello.xoo b/it/projects/override-project-settings-path/src/basic/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/override-project-settings-path/src/basic/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/override-project-settings-path/src/basic/Hello.xoo.measures b/it/projects/override-project-settings-path/src/basic/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/override-project-settings-path/src/basic/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/override-project-settings-path/src/basic/World.js b/it/projects/override-project-settings-path/src/basic/World.js deleted file mode 100644 index 1ea849a..0000000 --- a/it/projects/override-project-settings-path/src/basic/World.js +++ /dev/null @@ -1,2 +0,0 @@ -function world() { -} diff --git a/it/projects/override-project-settings-path/src/basic/World.xoo b/it/projects/override-project-settings-path/src/basic/World.xoo new file mode 100644 index 0000000..1ea849a --- /dev/null +++ b/it/projects/override-project-settings-path/src/basic/World.xoo @@ -0,0 +1,2 @@ +function world() { +} diff --git a/it/projects/override-project-settings-path/src/basic/World.xoo.measures b/it/projects/override-project-settings-path/src/basic/World.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/override-project-settings-path/src/basic/World.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/override-working-dir/src/Hello.js b/it/projects/override-working-dir/src/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/override-working-dir/src/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/override-working-dir/src/Hello.xoo b/it/projects/override-working-dir/src/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/override-working-dir/src/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/override-working-dir/src/Hello.xoo.measures b/it/projects/override-working-dir/src/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/override-working-dir/src/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/simple-sample-no-properties/src/basic/Hello.js b/it/projects/simple-sample-no-properties/src/basic/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/simple-sample-no-properties/src/basic/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/simple-sample-no-properties/src/basic/Hello.xoo b/it/projects/simple-sample-no-properties/src/basic/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/simple-sample-no-properties/src/basic/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/simple-sample-no-properties/src/basic/Hello.xoo.measures b/it/projects/simple-sample-no-properties/src/basic/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/simple-sample-no-properties/src/basic/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/simple-sample-no-properties/src/basic/World.js b/it/projects/simple-sample-no-properties/src/basic/World.js deleted file mode 100644 index 1ea849a..0000000 --- a/it/projects/simple-sample-no-properties/src/basic/World.js +++ /dev/null @@ -1,2 +0,0 @@ -function world() { -} diff --git a/it/projects/simple-sample-no-properties/src/basic/World.xoo b/it/projects/simple-sample-no-properties/src/basic/World.xoo new file mode 100644 index 0000000..1ea849a --- /dev/null +++ b/it/projects/simple-sample-no-properties/src/basic/World.xoo @@ -0,0 +1,2 @@ +function world() { +} diff --git a/it/projects/simple-sample-no-properties/src/basic/World.xoo.measures b/it/projects/simple-sample-no-properties/src/basic/World.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/simple-sample-no-properties/src/basic/World.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/simple-sample/src/basic/Hello.js b/it/projects/simple-sample/src/basic/Hello.js deleted file mode 100644 index fd35455..0000000 --- a/it/projects/simple-sample/src/basic/Hello.js +++ /dev/null @@ -1,2 +0,0 @@ -function hello() { -} diff --git a/it/projects/simple-sample/src/basic/Hello.xoo b/it/projects/simple-sample/src/basic/Hello.xoo new file mode 100644 index 0000000..fd35455 --- /dev/null +++ b/it/projects/simple-sample/src/basic/Hello.xoo @@ -0,0 +1,2 @@ +function hello() { +} diff --git a/it/projects/simple-sample/src/basic/Hello.xoo.measures b/it/projects/simple-sample/src/basic/Hello.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/simple-sample/src/basic/Hello.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/projects/simple-sample/src/basic/World.js b/it/projects/simple-sample/src/basic/World.js deleted file mode 100644 index 1ea849a..0000000 --- a/it/projects/simple-sample/src/basic/World.js +++ /dev/null @@ -1,2 +0,0 @@ -function world() { -} diff --git a/it/projects/simple-sample/src/basic/World.xoo b/it/projects/simple-sample/src/basic/World.xoo new file mode 100644 index 0000000..1ea849a --- /dev/null +++ b/it/projects/simple-sample/src/basic/World.xoo @@ -0,0 +1,2 @@ +function world() { +} diff --git a/it/projects/simple-sample/src/basic/World.xoo.measures b/it/projects/simple-sample/src/basic/World.xoo.measures new file mode 100644 index 0000000..5143bc6 --- /dev/null +++ b/it/projects/simple-sample/src/basic/World.xoo.measures @@ -0,0 +1 @@ +ncloc:2 diff --git a/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java b/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java index abb7967..89e0d82 100644 --- a/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java +++ b/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java @@ -215,10 +215,10 @@ public class ScannerTest extends ScannerTestCase { assertThat(getComponent("sample").getDescription()) .isEqualTo("This is a sample"); Map projectMeasures = getMeasures("sample", "files", - "ncloc", "classes", "violations"); + "ncloc", "violations"); assertThat(projectMeasures.values().stream() .filter(measure -> measure.getValue() != null) - .collect(Collectors.toList())).hasSize(4); + .collect(Collectors.toList())).hasSize(3); } @Test diff --git a/it/src/test/java/com/sonarsource/scanner/it/SonarScannerTestSuite.java b/it/src/test/java/com/sonarsource/scanner/it/SonarScannerTestSuite.java index 232f43c..2ff3538 100644 --- a/it/src/test/java/com/sonarsource/scanner/it/SonarScannerTestSuite.java +++ b/it/src/test/java/com/sonarsource/scanner/it/SonarScannerTestSuite.java @@ -20,7 +20,6 @@ package com.sonarsource.scanner.it; import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.OrchestratorBuilder; import com.sonar.orchestrator.locator.MavenLocation; import org.junit.ClassRule; import org.junit.runner.RunWith; @@ -38,23 +37,11 @@ public class SonarScannerTestSuite { private static Orchestrator createOrchestrator() { String sonarVersion = System .getProperty("sonar.runtimeVersion", "LATEST_RELEASE[7.9]"); - OrchestratorBuilder builder = Orchestrator.builderEnv() + return Orchestrator.builderEnv() .setSonarVersion( - sonarVersion); - // The javascript language plugin needs to be installed to allow for - // tests to pass. If not installed test fail with a "no languages - // installed" error. - MavenLocation javascriptPlugin = MavenLocation - .of("org.sonarsource.javascript", "sonar-javascript-plugin", - "5.2.1.7778"); - // Since version 8.5 languages are bundled and located in a different - // location then other plugins. So install this in the correct location. - if (sonarVersion.startsWith("LATEST_RELEASE[7.9]")) { - builder.addPlugin(javascriptPlugin); - } else { - builder.addBundledPlugin(javascriptPlugin); - } - return builder.build(); + sonarVersion).addPlugin(MavenLocation + .of("org.sonarsource.sonarqube", "sonar-xoo-plugin", + sonarVersion)).build(); } } -- cgit v1.2.3