Skip to content

Commit

Permalink
Fix broken link in user warning (#3539)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-epure-sonarsource committed Aug 20, 2020
1 parent 609af92 commit 0be1f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -135,7 +135,7 @@ void analyze(SensorContext context, Coverage coverage) {
LOG.info(fileCountStatistics.toString());
if (fileCountStatistics.mainWithCoverage == 0) {
LOG.warn("The Code Coverage report doesn't contain any coverage data for the included files. For "
+ "troubleshooting hints, please refer to https://docs.sonarqube.org/x/CoBh");
+ "troubleshooting help, please visit our community forum at https://community.sonarsource.com");
}
}
}
Expand Down
Expand Up @@ -168,7 +168,7 @@ public void execute_coverage_no_main_file() throws IOException {
assertThat(logTester.logs(LoggerLevel.INFO)).containsOnly("Coverage Report Statistics: " +
"1 files, 0 main files, 0 main files with coverage, 1 test files, 0 project excluded files, 0 other language files.");
assertThat(logTester.logs(LoggerLevel.WARN)).contains("The Code Coverage report doesn't contain any coverage "
+ "data for the included files. For troubleshooting hints, please refer to https://docs.sonarqube.org/x/CoBh");
+ "data for the included files. For troubleshooting help, please visit our community forum at https://community.sonarsource.com");
assertThat(logTester.logs(LoggerLevel.DEBUG)).contains(
"Analyzing coverage with wildcardPatternFileProvider with base dir '" + CoverageReportImportSensor.BASE_DIR.getAbsolutePath() + "' and file separator '\\'.",
"Analyzing coverage after aggregate found '1' coverage files.",
Expand All @@ -192,7 +192,7 @@ public void execute_coverage_main_file_no_coverage_for_file() throws IOException
assertThat(logTester.logs(LoggerLevel.INFO)).containsOnly("Coverage Report Statistics: " +
"1 files, 1 main files, 0 main files with coverage, 0 test files, 0 project excluded files, 0 other language files.");
assertThat(logTester.logs(LoggerLevel.WARN)).contains("The Code Coverage report doesn't contain any coverage "
+ "data for the included files. For troubleshooting hints, please refer to https://docs.sonarqube.org/x/CoBh");
+ "data for the included files. For troubleshooting help, please visit our community forum at https://community.sonarsource.com");
assertThat(logTester.logs(LoggerLevel.DEBUG)).contains(
"Analyzing coverage with wildcardPatternFileProvider with base dir '" + CoverageReportImportSensor.BASE_DIR.getAbsolutePath() + "' and file separator '\\'.",
"Analyzing coverage after aggregate found '1' coverage files.",
Expand Down

0 comments on commit 0be1f6b

Please sign in to comment.