[Pkg-javascript-commits] [node-coveralls] 157/332: convertLcovToCoveralls should output paths with slashes even on windows.

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:54 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit ff4eab1b116d503f2c0e10fc1abc5c1b9114eb2e
Author: jaubourg <j at ubourg.net>
Date:   Fri May 23 04:15:29 2014 +0200

    convertLcovToCoveralls should output paths with slashes even on windows.
---
 lib/convertLcovToCoveralls.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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	};
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list