Blanket based code coverage for ember-cli applications
Install the npm package:
npm install ember-cli-blanket --save-dev
Then run the ember-cli-blanket generater:
ember generate ember-cli-blanket
Run ember server
, navigate to the application url /tests (e.g. localhost:4200/tests) and select the "Enable coverage" checkbox.
A options file is available in tests/blanket-options.js that contains the current regex for data coverage (filter) the regex for exclusion from data coverage (antifilter) and an array of string to exclude from blanket's requirejs loader (loaderExclusions).
As of release 0.2.4 loader exclusions are no longer necessary to fix conflicts with addon modules. Loader exclusions may still be used to remove data coverage for specific files (e.g. config/environment).
MIT
- 0.2.5
Flagging additional keywords
- 0.2.4
Avoid instrumentation of any modules that don't contain the project modulePrefix
- 0.2.3
Resolving a release version collision with the npm published version
- 0.2.2
Upgraded to ember-cli 0.1.12
Removed unused dependencies installed in the standard ember-cli addon generation that were causing deprecation warnings.
- 0.2.1