Closed mdasberg closed 8 years ago
The protractor_coverage task configured in protractor_coverage.js spawns the protractor process.
Once the process is completed an async call is done to fetch the coverage data, but the tasks is marked as done, before the call has finished.
getCoverageData(function(payload){ try{ var filename=path.normalize([coverageDir,'/coverage.json'].join('')); fs.writeFileSync(filename, payload); } catch(e){ grunt.log.error("Got error: " + e.message); } }); done(); done = null;
+1
The protractor_coverage task configured in protractor_coverage.js spawns the protractor process.
Once the process is completed an async call is done to fetch the coverage data, but the tasks is marked as done, before the call has finished.