My website is brand new and one of the few requirements of testings I had to implement was code coverage. Never though it was so hard to implement using a #docker container. Given my lack of experience, every attempt I tried on making a simple code coverage test using the 4 combinations of #TravisCI, #CircleCi with #Coveralls, #Codecov I failed. The main problem was I was generating the .coverage file within the docker container and couldn't access it with #TravisCi or #CircleCi, every attempt to solve this problem seems to be very hacky and this was not the kind of complexity I want to introduce to my newborn website. This problem was solved using a specific action for #GitHubActions, it was a 3 line solution I had to put in my github workflow file and I was able to access the .coverage file from my docker container and get the coverage report with #Codecov.

READ LESS
GitHub - drafthub/drafthub: Hosted blogging platform based on GitHub (github.com)
5 upvotes·1 comment·83.6K views
Felipe Lincoln
Felipe Lincoln
·
May 24th 2020 at 3:54PM

Just to mention, somehow I couldn't get it to work using Coveralls. Switching to Codecov the solution was straightforward.

·
Reply
Avatar of Felipe Lincoln