Skip to content

Add include option to add additional coverage to the report#79

Open
jesseditson wants to merge 1 commit intoember-cli-code-coverage:masterfrom
jesseditson:include-coverage
Open

Add include option to add additional coverage to the report#79
jesseditson wants to merge 1 commit intoember-cli-code-coverage:masterfrom
jesseditson:include-coverage

Conversation

@jesseditson
Copy link
Contributor

This PR adds an include option to the config hash that will allow users to include additional coverage to the output.

My current setup is as follows:

  • I have application server code that lives in server
  • I have a suite of tests for app server code that lives in test
  • I run server tests on rebuild using an in-repo addon
  • The server tests output to coverage-server, which I'd like to include in the coverage report

This option allows me to specify the coverage-server/coverage-final.json (generated via nyc), and get accurate coverage on my entire app, instead of having 2 different coverage reports.

@jesseditson
Copy link
Contributor Author

Relates to: ember-cli/rfcs#81 - with that RFC and this PR, tests & coverage would work across both the app and the server code

@RobbieTheWagner
Copy link
Collaborator

This seems okay to me. @rwjblue @kategengler @kellyselden thoughts? I would definitely like to see some tests added here, but I am not opposed to the idea of this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants