aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaubourg <[email protected]>2014-05-23 04:15:29 +0200
committerjaubourg <[email protected]>2014-05-23 04:15:29 +0200
commitff4eab1b116d503f2c0e10fc1abc5c1b9114eb2e (patch)
tree1ad7525624a086374cee9bf3ecf8d2b8b66ee552
parent2225a3ffd3b2c20046e46981cd79696697816112 (diff)
downloadnode-coveralls-ff4eab1b116d503f2c0e10fc1abc5c1b9114eb2e.tar.xz
node-coveralls-ff4eab1b116d503f2c0e10fc1abc5c1b9114eb2e.zip
convertLcovToCoveralls should output paths with slashes even on windows.
-rw-r--r--lib/convertLcovToCoveralls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/convertLcovToCoveralls.js b/lib/convertLcovToCoveralls.js
index 11c87b6..3f604e1 100644
--- a/lib/convertLcovToCoveralls.js
+++ b/lib/convertLcovToCoveralls.js
@@ -18,7 +18,7 @@ var convertLcovFileObject = function(file, filepath){
var source = fs.readFileSync(filepath, 'utf8');
var lines = source.split("\n");
var coverage = detailsToCoverage(lines.length, file.lines.details);
- return { name : path.relative(rootpath, path.resolve(rootpath, file.file)),
+ return { name : path.relative(rootpath, path.resolve(rootpath, file.file)).split( path.sep ).join( "/" ),
source : source,
coverage : coverage };
};