aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/test
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2021-04-29 14:30:56 +0200
committersonartech <sonartech@sonarsource.com>2021-04-29 20:03:32 +0000
commit12ff4a12bc6613cd17d02c3c4b6f7de469a07ffe (patch)
treeddd4c50b0f38d021992fc30d21debfe255031ecb /sonar-scanner-engine/src/test
parentca4bbea8375d754cb5cfb37a6cd046ca6d038434 (diff)
downloadsonarqube-12ff4a12bc6613cd17d02c3c4b6f7de469a07ffe.tar.gz
sonarqube-12ff4a12bc6613cd17d02c3c4b6f7de469a07ffe.zip
SONAR-14750 - Add link to warning + update doc
Diffstat (limited to 'sonar-scanner-engine/src/test')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/scm/DefaultBlameOutputTest.java3
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scm/DefaultBlameOutputTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scm/DefaultBlameOutputTest.java
index 135da7d0799..21ba297db5e 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scm/DefaultBlameOutputTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scm/DefaultBlameOutputTest.java
@@ -53,7 +53,8 @@ public class DefaultBlameOutputTest {
new DefaultBlameOutput(null, analysisWarnings, singletonList(file)).finish(true);
assertThat(analysisWarnings.warnings()).extracting(DefaultAnalysisWarnings.Message::getText)
- .containsOnly("Missing blame information for 1 file. This may lead to some features not working correctly. Please check the analysis logs.");
+ .containsOnly("Missing blame information for 1 file. This may lead to some features not working correctly. " +
+ "Please check the analysis logs and refer to <a href=\"/documentation/analysis/scm-integration/\" target=\"_blank\">the documentation</a>.");
}
@Test
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java
index f4501a19768..8f603f32b08 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java
@@ -609,7 +609,8 @@ public class GitScmProviderTest {
assertThat(warnLog.getRawMsg()).isEqualTo(refNotFound);
String warning = refNotFound
- + ". You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis.";
+ + ". You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis"
+ + " and refer to <a href=\"/documentation/analysis/scm-integration/\" target=\"_blank\">the documentation</a>.";
verify(analysisWarnings).addUnique(warning);
}