Skip to content

The same reporter as mocha-sonar-generic-test-coverage reporter, but writes the output to a file. And some issues fixed.

Notifications You must be signed in to change notification settings

qingguo-yu/mocha-sonar-generic-test-coverage-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mocha-sonar-generic-test-coverage-file

Build

Basically the same reporter as mocha-sonar-generic-test-coverage reporter(https://github.com/mageddo/mocha-sonar-generic-test-coverage), but writes the output to a file. And some issues fixed.

Why we need to do that? The logging output in the test cases can pollute the final report file when we use capture keyword in grunt.

By default, the output file would be "gunit.xml" located in root folder of the same project.

Notes:

  1. Please use mocha 1.20.1 or later version. Otherwise, file name could be empty in the report file.
  2. Please make sure no duplicated test case names. Otherwise, sonar will fail when uploading report to the server.

About

The same reporter as mocha-sonar-generic-test-coverage reporter, but writes the output to a file. And some issues fixed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published