How to use the handleInput function from coveralls
Find comprehensive JavaScript coveralls.handleInput code examples handpicked from public code repositorys.
237 238 239 240 241 242 243 244
jscoverage.coverageDetail(); /*var coverageStats = jscoverage.coverageStats(); Object.keys(coverageStats).forEach(function(file) { test.equal(coverageStats[file].total, coverageStats[file].touched, 'All lines of code exercised by the tests'); });*/ if(process.env.TRAVIS) coveralls.handleInput(jscoverage.getLCOV()); test.done(); };
0
1
744
+ 19 other calls in file
GitHub: nvdnkpr/redis-manager
262 263 264 265 266 267 268 269
} } test.equal(total, touched, 'All lines of code exercised by the tests'); }); lcov += "end_of_record\n"; if(process.env.TRAVIS) coveralls.handleInput(lcov); test.done(); };
1
0
1
+ 19 other calls in file
112 113 114 115 116 117 118 119 120 121
catch (err) { throw new Error("Lcov file not found."); } const basePath = core.getInput('base-path'); const adjustedFile = basePath ? lcov_processor_1.adjustLcovBasePath(file, basePath) : file; coveralls.handleInput(adjustedFile, (err, body) => { if (err) { core.setFailed(err); } else {
0
0
1
+ 17 other calls in file
coveralls.handleInput is the most popular function in coveralls (75 examples)