Skip to content

A reporter for Mocha the outputs coverage in as format for Teamcity CI

Notifications You must be signed in to change notification settings

cmmcleod/mocha-teamcity-cov-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/visionmedia/mocha/wiki/Third-party-reporters describes using third party reporters in mocha.

Basically, have your project's package.json be like:

{  
  "devDependencies": {  
    "mocha-teamcity-cov-reporter": ">=0.0.1"  
  }  
}

Then call mocha with:

mocha --reporter mocha-teamcity-cov-reporter test

This also works well with grunt-mocha-test

mochaTest: {  
  test: {  
    // Your test settings  
  },  
  coverage: {  
    options: {  
      reporter: 'mocha-teamcity-cov-reporter',  
      quiet: false  
    },  
    src: ['src/files.js']  // Your source code files  
  }  
}

About

A reporter for Mocha the outputs coverage in as format for Teamcity CI

Resources

Stars

Watchers

Forks

Packages

No packages published