Skip to content

Commit af50f02

Browse files
Nebotovvilchik-elena
authored andcommitted
repair tests for Windows enviroment (#889)
1 parent 690e4ac commit af50f02

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/javascript-frontend/src/test/resources/highlighter/*.js text eol=lf
1+
*.js text eol=lf
22

sonar-javascript-plugin/src/test/java/org/sonar/plugins/javascript/lcov/CoverageSensorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public void test_unresolved_path() {
127127
coverageSensor.execute(context);
128128

129129
// expected logged text: "Could not resolve 1 file paths in [...], first unresolved path: unresolved/file1.js"
130-
assertThat(logTester.logs()).contains("Could not resolve 1 file paths in [" + moduleBaseDir.getAbsolutePath() + "/reports/report_with_unresolved_path.lcov], first unresolved path: unresolved/file1.js");
130+
String fileName = File.separator + "reports" + File.separator + "report_with_unresolved_path.lcov";
131+
assertThat(logTester.logs()).contains("Could not resolve 1 file paths in [" + moduleBaseDir.getAbsolutePath() + fileName + "], first unresolved path: unresolved/file1.js");
131132
}
132133

133134
@Test

0 commit comments

Comments
 (0)