![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
ember-cli-code-coverage
Advanced tools
Code coverage using Istanbul for Ember apps.
>= 1.6.0
for which you need ember-cli > 2.4.3
>= 0.11.0
ember install ember-cli-code-coverage
Coverage will only be generated when an environment variable is true (by default COVERAGE
) and running your test command like normal.
For example:
COVERAGE=true ember test
Configuration is optional. It should be put in a file at config/coverage-config.js
.
coverageEnvVar
: Defaults to COVERAGE
. This is the environment variable that when set will cause coverage metrics to be generated.
reporters
: Defaults to ['lcov', 'html']
. The json-summary
reporter will be added to anything set here, it is required. This can be any reporters supported by Istanbul.
excludes
: Defaults to ['*/mirage/**/*']
. An array of globs to exclude from instrumentation. Useful to exclude files from coverage statistics.
coverageFolder
: Defaults to coverage
. A folder relative to the root of your project to store coverage results.
Aka when using ember-cli-mirage or Pretender. You may require a version of Pretender that includes this fix.
To work, this addon has to post coverage results back to a middleware at /write-coverage
.
// in mirage/config.js
this.passthrough('/write-coverage');
this.namespace = 'api'; // It's important that the passthrough for coverage is before the namespace, otherwise it will be prefixed.
This addon was inspired by ember-cli-blanket
.
The primary differences are that this addon uses Istanbul rather than Blanket for coverage and it instruments your application code as part of the build, when enabled.
FAQs
Code coverage for ember projects using Istanbul
The npm package ember-cli-code-coverage receives a total of 7,014 weekly downloads. As such, ember-cli-code-coverage popularity was classified as popular.
We found that ember-cli-code-coverage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.