Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Jul 26, 2024
1 parent 91358f0 commit 3d8c90c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion its/src/test/java/com/sonar/it/csharp/TestProjectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void issuesAreImportedForTestProject() {

@Test
void with_html_and_csharp_code_explicitly_marked_as_test_should_not_populate_metrics() throws Exception {
BuildResult buildResult = Tests.analyzeProject(temp, EXPLICITLY_MARKED_AS_TEST, "no_rule");
BuildResult buildResult = Tests.analyzeProject(temp, EXPLICITLY_MARKED_AS_TEST);

assertThat(Tests.getComponent("HtmlCSharpExplicitlyMarkedAsTest:Foo.cs")).isNotNull();
assertThat(getMeasureAsInt(EXPLICITLY_MARKED_AS_TEST, "files")).isNull();
Expand Down
2 changes: 1 addition & 1 deletion its/src/test/java/com/sonar/it/vbnet/CoverageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void coverage(String testFramework, String format, int linesToCover, int uncove

@Test
void no_coverage_on_tests() throws Exception {
BuildResult buildResult = Tests.analyzeProject(temp, "VbNoCoverageOnTests", "vbnet_no_rule", "sonar.vbnet.vscoveragexml.reportsPaths", "reports/visualstudio.coveragexml");
BuildResult buildResult = Tests.analyzeProject(temp, "VbNoCoverageOnTests", "sonar.vbnet.vscoveragexml.reportsPaths", "reports/visualstudio.coveragexml");

assertThat(buildResult.getLogs()).contains(
"Sensor VB.NET Tests Coverage Report Import",
Expand Down

0 comments on commit 3d8c90c

Please sign in to comment.