lealceldeiro / org.wcdevs.blog.front

Holds the `org.wcdevs.blog.front` application
https://wcdevs.org
Apache License 2.0
2 stars 0 forks source link

[Technical Request] Add code coverage report #20

Open lealceldeiro opened 2 years ago

lealceldeiro commented 2 years ago

Contact Details

No response

What technical change you'd like to see implemented in our project?

Let's plan for adding a coverage report badge in the app. Something like this:

codecov

The purpose is to keep track of how much the code is covered by the tests.

For this I think we could go with Codecov and use its GitHub action. I've used this in another set up and it worked like charm. Here's a reference:

https://github.com/lealceldeiro/org.wcdevs.blog.core/blob/3eb02ea4f2662643b96fd5df40fe761e3cf2e27a/.github/workflows/build-and-publish.yml#L71

The only requirement from dev perspective here is to be able to generate a coverage report for Codecov GitHub action (usage example here as well: https://github.com/marketplace/actions/codecov#usage) to send it to the already created account I have.

After that it's just a matter of updating the readme file with the link to the badge generated (out of the box) for us in Codecov.

Code of Conduct

YuryDG commented 2 years ago

That's sounds good to me @lealceldeiro

lealceldeiro commented 2 years ago

@YuryDG , please triage this ticket in wcDevs project appropriately.