aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregg Caines <[email protected]>2014-05-24 19:21:30 -0700
committerGregg Caines <[email protected]>2014-05-24 19:21:30 -0700
commitf4ffee6209b0892c76a099dd68ed17e339a79a05 (patch)
treed180468723a8182b631d6ca9d35815cbd73a9772 /lib
parent91bb57d697b23b67b18bcb5ec15c0a38760f92aa (diff)
parentff4eab1b116d503f2c0e10fc1abc5c1b9114eb2e (diff)
downloadnode-coveralls-f4ffee6209b0892c76a099dd68ed17e339a79a05.tar.xz
node-coveralls-f4ffee6209b0892c76a099dd68ed17e339a79a05.zip
Merge pull request #55 from jaubourg/windows_path
convertLcovToCoveralls should output paths with slashes even on windows.
Diffstat (limited to 'lib')
-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 };
};