Skip to content

Improve our coverage configuration.#2134

Merged
stephenplusplus merged 2 commits intogoogleapis:masterfrom
lukesneeringer:coverage-config
Mar 24, 2017
Merged

Improve our coverage configuration.#2134
stephenplusplus merged 2 commits intogoogleapis:masterfrom
lukesneeringer:coverage-config

Conversation

@lukesneeringer
Copy link
Copy Markdown
Contributor

@lukesneeringer lukesneeringer commented Mar 24, 2017

I want to get started fixing our coverage. It annoys me that it is at 99% and coveralls gives us a big fat red ❌.

This is the first step, which is making the reporting better. This PR:

  • Upgrades Istanbul to the current version (0.3.5 is quite old; 0.4 has been out for months, and has much prettier HTML reports).
  • Adds an npm run cover-html command to get an HTML report.
  • Adds an .istanbul.yml config file, which notably changes the reporting threshholds. Now we get red below 95% and yellow below 100%. The defaults on Istanbul (50% and 80%) are ridiculous and show up green even when you are missing a lot of coverage.
  • Moves coverage reports into the .coverage directory (note the leading dot), because I am OCD and really hate seeing it on a default ls. The .gitignore and npm run coveralls are updated accordingly.

The first step to fixing it. :-)
@lukesneeringer lukesneeringer self-assigned this Mar 24, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 24, 2017
@stephenplusplus
Copy link
Copy Markdown
Contributor

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0001%) to 99.924% when pulling dab1912 on lukesneeringer:coverage-config into c522d81 on GoogleCloudPlatform:master.

@lukesneeringer
Copy link
Copy Markdown
Contributor Author

Edited. Everything else look good to you?

@stephenplusplus stephenplusplus merged commit 688ac58 into googleapis:master Mar 24, 2017
@lukesneeringer lukesneeringer deleted the coverage-config branch March 24, 2017 17:14
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0001%) to 99.924% when pulling c2c5527 on lukesneeringer:coverage-config into c522d81 on GoogleCloudPlatform:master.

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

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants