How to use the coveralls.sendToCoveralls function in coveralls

To help you get started, we’ve selected a few coveralls examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github caitp / karma-coveralls / lib / index.js View on Github external
coveralls.convertLcovToCoveralls(input, options, function(err, postData) {
          coveralls.sendToCoveralls(postData, function(err, response, body) {
            log.info("uploading...");
            send_to_coveralls(done, err, response, body);
          });
        });
      });
github mmoulton / grunt-mocha-cov / lib / mocha.js View on Github external
coveralls.convertLcovToCoveralls(String(result), opts, function (err, postData) {
          if (err) {
            return callback(new Error('Unable to parse LCov coverage data: ' + err.message));
          }

          coveralls.sendToCoveralls(postData, function (err, response, body) {
            if (err) {
              return callback(new Error('Unable to send data to coveralls.io: ' + err.message));
            }

            if (response.statusCode >= 400) {
              return callback(new Error('Bad response from coveralls.io: ' + response.statusCode + ' ' + body));
            }
            callback(null);
          });
        });
      });

coveralls

takes json-cov output into stdin and POSTs to coveralls.io

BSD-2-Clause
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis