diff options
| author | Arjan Singh <[email protected]> | 2016-04-06 21:36:30 -0700 |
|---|---|---|
| committer | Arjan Singh <[email protected]> | 2016-09-14 15:26:48 -0700 |
| commit | 993332233a2f02695a769e2c17c0d593a96b14c9 (patch) | |
| tree | 47a930b30eba0ad5be78a610666f17ec0f866d2b /lib | |
| parent | 95c4dfdd305e27afa5ac2d1dc910b04a1524918b (diff) | |
| download | node-coveralls-993332233a2f02695a769e2c17c0d593a96b14c9.tar.xz node-coveralls-993332233a2f02695a769e2c17c0d593a96b14c9.zip | |
Ignore files that do not exist in convertLcovToCoveralls
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/convertLcovToCoveralls.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/convertLcovToCoveralls.js b/lib/convertLcovToCoveralls.js index ca2c2c0..e925343 100644 --- a/lib/convertLcovToCoveralls.js +++ b/lib/convertLcovToCoveralls.js @@ -61,7 +61,10 @@ var convertLcovToCoveralls = function(input, options, cb){ postJson.service_pull_request = options.service_pull_request; } parsed.forEach(function(file){ - postJson.source_files.push(convertLcovFileObject(file, filepath)); + var currentFilePath = path.resolve(filepath, file.file); + if (fs.existsSync(currentFilePath)) { + postJson.source_files.push(convertLcovFileObject(file, filepath)); + } }); return cb(null, postJson); }); |
