diff options
author | Julien HENRY <henryju@yahoo.fr> | 2018-03-14 17:54:44 +0100 |
---|---|---|
committer | Julien HENRY <henryju@yahoo.fr> | 2018-03-14 17:54:44 +0100 |
commit | d151f025a96dbe48f4b4ec56a669a27f90d67952 (patch) | |
tree | e08cc6885b178f6be96b70b4a0f8981cfbe3bd39 /sonar-scanner-engine | |
parent | 4df67277be75c9b41f5b434f03c2fbf6dbb8b426 (diff) | |
download | sonarqube-d151f025a96dbe48f4b4ec56a669a27f90d67952.tar.gz sonarqube-d151f025a96dbe48f4b4ec56a669a27f90d67952.zip |
Don't use assumeTrue to not break the quality gate
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java index 919881ecd6e..1ec6df35104 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java @@ -629,19 +629,21 @@ public class FileSystemMediumTest { // SONAR-6719 @Test public void scanProjectWithWrongCase() { - assumeTrue(System2.INSTANCE.isOsWindows()); - File projectDir = new File("src/test/resources/mediumtest/xoo/sample"); - TaskResult result = tester - .newScanTask(new File(projectDir, "sonar-project.properties")) - .property("sonar.sources", "XOURCES") - .property("sonar.tests", "TESTX") - .execute(); + // To please the quality gate, don't use assumeTrue, or the test will be reported as skipped + if (System2.INSTANCE.isOsWindows()) { + File projectDir = new File("src/test/resources/mediumtest/xoo/sample"); + TaskResult result = tester + .newScanTask(new File(projectDir, "sonar-project.properties")) + .property("sonar.sources", "XOURCES") + .property("sonar.tests", "TESTX") + .execute(); - assertThat(result.inputFiles()).hasSize(3); - assertThat(result.inputFiles()).extractingResultOf("relativePath").containsOnly( - "xources/hello/HelloJava.xoo", - "xources/hello/helloscala.xoo", - "testx/ClassOneTest.xoo"); + assertThat(result.inputFiles()).hasSize(3); + assertThat(result.inputFiles()).extractingResultOf("relativePath").containsOnly( + "xources/hello/HelloJava.xoo", + "xources/hello/helloscala.xoo", + "testx/ClassOneTest.xoo"); + } } @Test |