Created
          July 18, 2013 19:28 
        
      - 
      
- 
        Save dylants/6032247 to your computer and use it in GitHub Desktop. 
    Gruntfile for mocha/jenkins integration
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module.exports = function (grunt) { | |
| grunt.loadNpmTasks('grunt-contrib-clean'); | |
| grunt.loadNpmTasks("grunt-mocha-test"); | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| clean: ["test-reports.xml"], | |
| mochaTest: { | |
| "test": { | |
| options: { | |
| reporter: "xunit" | |
| }, | |
| src: ["test/**/*.js"], | |
| dest: "test-reports.xml" | |
| } | |
| } | |
| }); | |
| grunt.registerTask("default", ["clean", "mochaTest"]); | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Using
grunt-mocha-test0.8.2, the configuration changed to this: