How to use the coveralls.handleInput 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 Rahul-Raviprasad / Library / gruntfile.js View on Github external
grunt.event.on('coverage', function(lcovFileContents, done) {
    // Set coverage config so karma-coverage knows to run coverage
    testConfig.coverage = true;
    require('coveralls').handleInput(lcovFileContents, function(err) {
      if (err) {
        return done(err);
      }
      done();
    });
  });
github Alfresco / alfresco-js-api / Gruntfile.js View on Github external
grunt.event.on('coverage', function (lcov, done) {
        require('coveralls').handleInput(lcov, function (err) {
            if (err) {
                return done(err);
            }
            done();
        });
    });
github fanatid / coloredcoinjs-lib / Gruntfile.js View on Github external
grunt.event.on('coverage', function (lcov, done) {
    require('coveralls').handleInput(lcov, function (error) {
      if (error && !(error instanceof Error)) {
        error = new Error(error)
      }

      done(error)
    })
  })
github SAP / node-hdb / bin / coveralls.js View on Github external
.on('end', function () {
    coveralls.handleInput(input, function (err) {
      if (err) {
        throw err;
      }
    });
  })
  .setEncoding('utf8');
github semantic-machines / veda / Gruntfile.js View on Github external
fs.readFile(fileName, 'utf8', function(err, fileContent) {
          if (err) {
            grunt.log.error("Failed to read file '" + fileName + "', with error: " + err);
            return callback(false);
          }

          coveralls.handleInput(fileContent, function(err) {
            if (err) {
              grunt.log.error("Failed to submit '" + fileName + "' to coveralls: " + err);
              return callback(false);
            }

            grunt.verbose.ok("Successfully submitted " + fileName + " to coveralls");
            callback(true);
          });
        });
    }
github kilbot / WooCommerce-POS / Gruntfile.js View on Github external
grunt.event.on('coverage', function(lcov, done){
    require('coveralls').handleInput(lcov, function(err){
      if (err) {
        return done(err);
      }
      done();
    });
  });
github craigrich / yodlee / Gruntfile.js View on Github external
grunt.event.on('coverage', function(lcov, done) {        
        require('coveralls').handleInput(lcov, function(err) {
            if (err) {
                return done(err);
            }
            done();
        });
    });
github LinuxBozo / brij-spec / Gruntfile.js View on Github external
grunt.event.on('coverage', function(lcov, done){
        require('coveralls').handleInput(lcov, function(err){
            if (err) {
                return done(err);
            }
            done();
        });
    });

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