Skip to content

Commit

Permalink
Got nodeunit working with Grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesshore committed Sep 24, 2013
1 parent 6d7d503 commit 2252645
Show file tree
Hide file tree
Showing 17 changed files with 524 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ module.exports = function(grunt) {
src: ["src/*.js", "src/server/**/*.js", "build/util/**/*.js", "Gruntfile.js"]
}
}
},

nodeunit: {
all: ["src/_*_test.js", "src/server/**/_*_test.js"]
}


Expand All @@ -38,12 +42,15 @@ module.exports = function(grunt) {
// // Default task(s).
// grunt.registerTask('default', ['uglify']);

grunt.loadNpmTasks("grunt-contrib-jshint");

grunt.registerTask("default", "Default Description", ["jshint"], function() {
grunt.registerTask("default", "Lint and test", ["jshint", "nodeunit"], function() {
console.log("\n\nOK");
});

grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-nodeunit");


function globalLintOptions() {
return {
bitwise: true,
Expand Down
1 change: 0 additions & 1 deletion Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
var testFiles = new jake.FileList();
testFiles.include("src/_*_test.js");
testFiles.include("src/server/**/_*_test.js");
testFiles.exclude("node_modules");
var tests = testFiles.toArray();
return tests;
}
Expand Down
13 changes: 13 additions & 0 deletions node_modules/grunt-contrib-nodeunit/.jshintrc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions node_modules/grunt-contrib-nodeunit/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions node_modules/grunt-contrib-nodeunit/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions node_modules/grunt-contrib-nodeunit/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions node_modules/grunt-contrib-nodeunit/CHANGELOG

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/grunt-contrib-nodeunit/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions node_modules/grunt-contrib-nodeunit/Gruntfile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions node_modules/grunt-contrib-nodeunit/LICENSE-MIT

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions node_modules/grunt-contrib-nodeunit/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions node_modules/grunt-contrib-nodeunit/docs/nodeunit-examples.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
3 changes: 3 additions & 0 deletions node_modules/grunt-contrib-nodeunit/docs/nodeunit-overview.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions node_modules/grunt-contrib-nodeunit/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2252645

Please sign in to comment.