Search code examples
code-coveragechutzpah

Chutzpah code coverage exclude folders


I am using Chutzpah for measuring JavaScript code coverage, but it is including js unit tests also in the report.

Is there anyway to exclude folders?

I've tried the below json setting, but it works if provided filename, but not working for folder.

    { 
      "CodeCoverageExcludes": ["*knockout-2.1.0.js", "*jquery-1.8.2.js","*\\Tests\\Cms.UnitTests\*"] 
    }

Solution

  • You did not escape the last backlash. It should be:

    { 
          "CodeCoverageExcludes": ["*knockout-2.1.0.js", "*jquery-1.8.2.js","*\\Tests\\Cms.UnitTests\\*"] 
    }