Skip to content

Commit

Permalink
Adapt tests to new layout of analysis Markdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed May 10, 2024
1 parent 9aa3a99 commit 5ad1f20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ void shouldGradeInDockerContainer() throws TimeoutException, IOException {
"Processing 2 static analysis configuration(s)",
"-> CheckStyle Total: 1 warnings",
"-> PMD Total: 1 warnings",
"=> Style: 2 warnings found (0 error, 0 high, 2 normal, 0 low)",
"=> Style: 2 warnings (0 error, 0 high, 2 normal, 0 low)",
"-> SpotBugs Total: 1 warnings",
"=> Bugs: 1 warning found (0 error, 0 high, 0 normal, 1 low)"});
"=> Bugs: 1 warning (0 error, 0 high, 0 normal, 1 low)"});

container.copyFileFromContainer("/github/workspace/metrics.env", LOCAL_METRICS_FILE);
assertThat(Files.readString(Path.of(LOCAL_METRICS_FILE)))
Expand Down Expand Up @@ -164,9 +164,9 @@ void shouldUseDefaultConfiguration() throws TimeoutException {
"Processing 2 static analysis configuration(s)",
"-> CheckStyle Total: 1 warnings",
"-> PMD Total: 1 warnings",
"=> Style: 2 warnings found (0 error, 0 high, 2 normal, 0 low)",
"=> Style: 2 warnings (0 error, 0 high, 2 normal, 0 low)",
"-> SpotBugs Total: 1 warnings",
"=> Bugs: 1 warning found (0 error, 0 high, 0 normal, 1 low)"});
"=> Bugs: 1 warning (0 error, 0 high, 0 normal, 1 low)"});
}
}

Expand All @@ -192,9 +192,9 @@ void shouldShowErrors() throws TimeoutException {
"Configuration error for 'SpotBugs'?",
"-> CheckStyle Total: 0 warnings",
"-> PMD Total: 0 warnings",
"=> Style: No warnings found",
"=> Style: No warnings",
"-> SpotBugs Total: 0 warnings",
"=> Bugs: No warnings found"});
"=> Bugs: No warnings"});
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ void shouldGradeWithConfigurationFromEnvironment() {
"=> PIT: 8%",
"Processing 2 static analysis configuration(s)",
"-> CheckStyle Total: 19 warnings",
"=> CheckStyle: 19 warnings found (0 error, 0 high, 19 normal, 0 low)",
"=> CheckStyle: 19 warnings (0 error, 0 high, 19 normal, 0 low)",
"-> PMD Total: 41 warnings",
"=> PMD: 41 warnings found (0 error, 0 high, 41 normal, 0 low)",
"=> PMD: 41 warnings (0 error, 0 high, 41 normal, 0 low)",
"-> SpotBugs Total: 1 warnings",
"=> SpotBugs: 1 warning found (0 error, 0 high, 0 normal, 1 low)",
"=> SpotBugs: 1 warning (0 error, 0 high, 0 normal, 1 low)",
"mutation=8",
"bugs=1",
"tests=37",
Expand Down

0 comments on commit 5ad1f20

Please sign in to comment.