It is working properly with 2.0.1
Here is my grunt file:
      mochaTest: {
        dist: {
          options: {
            reporter: 'spec',
            require: 'should',
            quiet: false, // Optionally suppress output to standard out (defaults to false)
            clearRequireCache: false // Optionally clear the require cache before running tests (defaults to false)
          },
          src: [ 'tests/**/*.js' ]
        },
        jenkins: {
          options: {
            reporter: 'xunit',
            require: 'should',
            captureFile: 'result.xml',
            quiet: false, // Optionally suppress output to standard out (defaults to false)
            clearRequireCache: false // Optionally clear the require cache before running tests (defaults to false)
          },
          src: [ 'tests/**/*.js' ]
        }
      },
---
Here is the jenkins error:
[4mRunning "mochaTest:jenkins" (mochaTest) task [24m
[31m>> [39mMocha exploded!
[31m>> [39mTypeError: Cannot read property 'reporterOptions' of undefined [31m
>> [39m    at new XUnit (/var/lib/jenkins/workspace/
>> [39m    at MochaWrapper.run (/var/lib/jenkins/workspace/
>> [39m    at /var/lib/jenkins/workspace/
>> [39m    at capture (/var/lib/jenkins/workspace/
>> [39m    at Object.<anonymous> (/var/lib/jenkins/workspace/
>> [39m    at Object.<anonymous> (/var/lib/jenkins/workspace/
>> [39m    at Object.thisTask.fn (/var/lib/jenkins/workspace/
>> [39m    at Object.<anonymous> (/var/lib/jenkins/workspace/
>> [39m    at Task.runTaskFn (/var/lib/jenkins/workspace/
>> [39m    at Task.<anonymous> (/var/lib/jenkins/workspace/
[33mWarning: Task "mochaTest:jenkins" failed. Use --force to continue. [39m
 
댓글 없음:
댓글 쓰기