diff options
| author | jaubourg <[email protected]> | 2014-05-23 04:15:29 +0200 |
|---|---|---|
| committer | jaubourg <[email protected]> | 2014-05-23 04:15:29 +0200 |
| commit | ff4eab1b116d503f2c0e10fc1abc5c1b9114eb2e (patch) | |
| tree | 1ad7525624a086374cee9bf3ecf8d2b8b66ee552 | |
| parent | 2225a3ffd3b2c20046e46981cd79696697816112 (diff) | |
| download | node-coveralls-ff4eab1b116d503f2c0e10fc1abc5c1b9114eb2e.tar.xz node-coveralls-ff4eab1b116d503f2c0e10fc1abc5c1b9114eb2e.zip | |
convertLcovToCoveralls should output paths with slashes even on windows.
| -rw-r--r-- | lib/convertLcovToCoveralls.js | 2 |
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 }; }; |
