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

Integrate test code coverage reporting with Codecov and Travis. #19

Merged

Conversation

ghost
Copy link

@ghost ghost commented Sep 12, 2019

resolves #18

  • Install dependency
    • @istanbuljs/nyc-config-typescript
    • codecov
  • Configure nyc to run test coverage
  • Add scripts to run
    • test:coverage
    • codecov
  • Configure travis to run test:coverage and codecov
  • Add code coverage badge in README.md

@codecov-io
Copy link

codecov-io commented Sep 12, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@3469291). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #19   +/-   ##
=========================================
  Coverage          ?   21.02%           
=========================================
  Files             ?       11           
  Lines             ?      176           
  Branches          ?       11           
=========================================
  Hits              ?       37           
  Misses            ?      137           
  Partials          ?        2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3469291...af3d15b. Read the comment docs.

@mesaugat
Copy link
Member

mesaugat commented Sep 13, 2019

@anishsilwal We only need to cover src files. Can you only include src files as part of the test coverage report.

Take a look here. leapfrogtechnology/async-store#23

README.md Outdated Show resolved Hide resolved
@mesaugat
Copy link
Member

mesaugat commented Sep 13, 2019

@anishsilwal Also, require ts-node/register so that interfaces are also left out from code coverage. Same example above.

@mesaugat mesaugat merged commit 2770807 into leapfrogtechnology:master Sep 13, 2019
@silwalanish silwalanish deleted the integrate-code-coverage branch October 26, 2019 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI - Integrate test code coverage reporting.
4 participants