Skip to content

Commit

Permalink
fix ITs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kebetsi committed Oct 24, 2023
1 parent 023c1eb commit cb46e5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</style>
</head>
<body>
<?= "Hello World!" ?>
"Hello World!
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public static void prepare() {

SonarScanner scanner = CssTestsUtils.createScanner(PROJECT_KEY);
scanner.setProperty("sonar.exclusions", "**/file-with-parsing-error-excluded.css");
scanner.setProperty("sonar.html.file.suffixes", ".htm");
buildResult = orchestrator.executeBuild(scanner);
}

Expand Down Expand Up @@ -168,7 +167,8 @@ void issue_list() {
tuple("css:S1116", "css-issues-project:src/file6.vue"),
tuple("css:S5362", "css-issues-project:src/file1.css"),
tuple("css:S5362", "css-issues-project:src/file2.less"),
tuple("css:S5362", "css-issues-project:src/file3.scss")
tuple("css:S5362", "css-issues-project:src/file3.scss"),
tuple("css:S1116", "css-issues-project:src/file5-1.html")
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@ExtendWith(OrchestratorStarter.class)
class CssNoCssFileProjectTest {

private static final String PROJECT_KEY = "css-php-project";
private static final String PROJECT_KEY = "css-html-project";

private static final Orchestrator orchestrator = OrchestratorStarter.ORCHESTRATOR;

Expand All @@ -62,6 +62,6 @@ void test() {

assertThat(issuesList)
.extracting(Issues.Issue::getRule, Issues.Issue::getLine, Issues.Issue::getComponent)
.containsExactlyInAnyOrder(tuple("css:S4658", 7, "css-php-project:src/index.php"));
.containsExactlyInAnyOrder(tuple("css:S4658", 7, PROJECT_KEY + ":src/index.html"));
}
}

0 comments on commit cb46e5c

Please sign in to comment.