UNPKG

grunt-karma-coveralls

Version:

An npm module for using Karma and Coveralls with Grunt

27 lines (23 loc) 718 B
var grunt = require('grunt'); exports.main = { deprecatedOldCoverageDir: function(test){ test.expect(1); grunt.util.spawn({ cmd: 'grunt', args: ['coveralls', '--no-color'] }, function(err, result){ test.equal(result.stderr, "DEPRECATION: use coverageDir instead of coverage_dir"); test.done(); }); }, showErrorMessageWhenNoLCOVData: function(test){ test.expect(1); grunt.util.spawn({ cmd: 'grunt', args: ['coveralls', '--no-color'] }, function(err, result){ test.ok(result.stdout.indexOf('lcov.info not found') > 0); test.done(); }); } };