Add code coverage reporting

Kent C. Dodds
InstructorKent C. Dodds

Share this video with your friends

Send Tweet

Now that we're keeping track of our coverage, let's upload our reports to a third party service so we can track our stats over time. In this lesson we'll show how easy it is to upload our stats to codecov.io.

David Poindexter
David Poindexter
~ 6 years ago

Something that's been kinda bothering me... If you create a GitHub issue, and then use "closes #ISSUE_NUMBER", it's closed before the build is even done on Travis CI.

Thoughts?

Kent C. Dodds
Kent C. Doddsinstructor
~ 6 years ago

That bothers me a bit too. Jira smart commits have similar issues. I generally just let it be. But if you want, you might simply put "#ISSUE_NUMBER" so it's linked, but not closed.

However, if your library has ghooks installed and you're basically running what Travis is running, you can feel fairly confident that what you're pushing up is going to work out. Just some thoughts :-)

kvrmd
kvrmd
~ 3 years ago

For others watching now, I noticed codecov.io (https://github.com/cainus/codecov.io) is deprecated in favor of codecov-node (https://github.com/codecov/codecov-node).