Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

Commented Unassigned: Disabling code coverage in VS is not possible [238]

$
0
0
In our project we want to disable code coverage when running from visual studio with code coverage enabled.

One of the reasons is the limited support for requirejs in the fact that when enabled it loads requirejs first in all cases.

The EnableCodeCoverage option in Chutzpah.json file that was introduced recently seems like the ticket but it doesn't do anything when set to false.

This can be seen from the code at TestContextBuilder.cs:376:
```
if (!options.CoverageOptions.Enabled && !chutzpahTestSettings.EnableCodeCoverage) return null;
```

Suggestion: Change the EnableCodeCoverage to allow 3 values, "false|true|auto". With auto being the current default (i.e. "false") and "false" and "true" forcing the enabled state.

Comments: I commited the fix I described .

Viewing all articles
Browse latest Browse all 1864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>