Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes and improvements #1

Merged
merged 23 commits into from
Dec 26, 2017
Merged

Bug fixes and improvements #1

merged 23 commits into from
Dec 26, 2017

Conversation

marcello3d
Copy link
Contributor

@marcello3d marcello3d commented Dec 22, 2017

parse coverage:

  • return 100 when file is empty/completely skipped (was returning 1)
  • 100% coverage for parse-coverage.js
  • fix relative path calculation in github-comment.js
  • compute common root

format coverage:

  • new emojis in some cases
  • fix path calculation for links to files in folders
  • render main coverage link outside of pre tag
  • don't show unchanged folders in overview
  • add folder coverage under details
  • 100% coverage for format-coverage.js
  • fix links when common root has no coverage
  • render markdown instead of html where possible

Marcello Bastéa-Forte added 4 commits December 21, 2017 15:52
- return 100 when file is empty/completely skipped (was returning 1)
- 100% coverage for parse-coverage.js
- fix relative path calculation in github-comment.js
- new emojis in some cases
- fix path calculation for links to files in folders
- render main coverage link outside of pre tag
- don't show unchanged folders in overview
- add folder coverage under details
- 100% coverage for format-coverage.js
@viv-9000
Copy link

Code Coverage from Circle CI build 26

Project Coverage 59.89% 💛
src/    59.89% 💛 
Folder Coverage
src/    59.89% 💛 

Marcello Bastéa-Forte added 3 commits December 21, 2017 16:17
- don't show change stats if there is no prior coverage to compare to
@viv-9000
Copy link

Code Coverage from Circle CI build 29

58.22% 💛

Folder Coverage
src/    58.22% 💛 

Marcello Bastéa-Forte added 3 commits December 21, 2017 16:31
- add dependency on istanbul-lib-report
- compute common root when parsing coverage file
- simplify link computation
- more tests
- render markdown instead of html where possible
@viv-9000
Copy link

Code Coverage
from Circle CI build 32

** 58.74% 💛 **

Folder Coverage
src/              0.00% ❌ 
src/coverage/   100.00% ✅ 

@viv-9000
Copy link

**Code Coverage: 57.84% 💛 **

Folder Coverage
src/              0.00% ❌ 
src/coverage/   100.00% ✅ 
From Circle CI [build 33](https://circleci.com/gh/vivlabs/coverage-github-reporter/33) — generated by [coverage-github-reporter](https://github.com/vivlabs/coverage-github-reporter)

@viv-9000
Copy link

Code Coverage: 67.73% 💛

Folder Coverage
src/             23.40% 💔
src/coverage/   100.00% ✅

From Circle CI build 37 — generated by coverage-github-reporter

@viv-9000
Copy link

Code Coverage: 67.49% 💛

Folder Coverage
src/             23.17% 💔
src/coverage/   100.00% ✅

From Circle CI build 38 — generated by coverage-github-reporter

Marcello Bastéa-Forte added 2 commits December 21, 2017 18:09
@viv-9000
Copy link

Code Coverage: 67.45% 💛 +12.36% 😀

src/                   22.95% 💔  -32.13% 😡
  bot.js               21.79% 💔  +21.79% 😀
  curl.js              50.00% 💔  +50.00% 😀
  github-comment.js    33.38% 💔  +33.38% 😀
src/coverage/         100.00% ✅
Folder Coverage
src/             22.95% 💔
src/coverage/   100.00% ✅

From Circle CI build 40 (compared to build 23 of master branch) — generated by coverage-github-reporter

@viv-9000
Copy link

Code Coverage: 68.32% 💛 +13.23% 😀

src/                   22.95% 💔  -32.13% 😡
  bot.js               21.79% 💔  +21.79% 😀
  curl.js              50.00% 💔  +50.00% 😀
  github-comment.js    33.38% 💔  +33.38% 😀
src/coverage/         100.00% ✅
Folder Coverage
src/             22.95% 💔
src/coverage/   100.00% ✅

Circle CI build 42 (compared to build 23 of master branch) — coverage-github-reporter


const ALL_FILES_PATH = '*'

const ERROR_THRESHOLD = 50
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it would be useful to stat (and read if it exists) a .cgr/.coverage-github-reporter/etc file containing overrides for these values? Maybe this is a 2.0 feature? The consts would be defaults if the config doesn't exist in that case.


const getEmoji = (percent) => {
if (percent === 0) {
return '❌'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose these could be customizable too in a .settings file in home, if that feature is added.

@marcello3d marcello3d merged commit 4424d1d into master Dec 26, 2017
@marcello3d marcello3d deleted the bug-fixes branch December 26, 2017 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants