We recently migrated an app that we have to docker, and docker-compose.
While without docker, we used to run tests using rspec spec
for example, while using docker we'd do the same thing using
docker-compose run app rspec spec
Now, in the old scenario, when I wanted a report for test coverage I'd use:
open coverage/index.html
Trying this with docker doesn't work though. Trying docker-compose run app open coverage/index.html
doesnt work as well. In fact there is no folder called coverage under my project.
I tried looking online left and right for any examples of simple-cov with docker but can find none. Any hints to how to get this to work would be immensly appreciated.
open