Skip to content

Commit

Permalink
chore: removed testing from grunt file (causing recursion issues duri…
Browse files Browse the repository at this point in the history
…ng some tests)
  • Loading branch information
Johnny Estilles committed Apr 20, 2015
1 parent 9be62aa commit 8e94e8a
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ module.exports = function(grunt) {
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',
'<%= nodeunit.tests %>',
'tasks/*.js'
],
options: {
jshintrc: '.jshintrc',
Expand All @@ -25,7 +24,10 @@ module.exports = function(grunt) {

// Before generating any new files, remove any previously-created files.
clean: {
tests: ['tmp'],
tests: [
'output/tag1.md',
'EXTENDEDCHANGELOG.md'
],
},

// Configuration to be run (and then tested).
Expand Down Expand Up @@ -70,16 +72,6 @@ module.exports = function(grunt) {
}
},

mocha_istanbul: {
coverage: {
src: './test', // a folder works nicely
options: {
mask: '*.spec.js',
reporFormat: ['lcov', 'html']
}
}
}

});

// Actually load this plugin's task(s).
Expand All @@ -89,17 +81,14 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-mocha-istanbul');

// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
grunt.registerTask('test', ['clean', 'git_changelog', 'mochaTest']);

// Determine test coverage
grunt.registerTask('coverage', ['test', 'mocha_istanbul:coverage']);
grunt.registerTask('pre-test', ['clean', 'git_changelog']);
// grunt.registerTask('test', ['clean', 'git_changelog', 'mochaTest']);

// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'test']);
grunt.registerTask('default', ['jshint', 'pre-test']);

// By default, lint and run all tests.
grunt.registerTask('ch', [ 'git_changelog']);
Expand Down

0 comments on commit 8e94e8a

Please sign in to comment.