Closed jonathan-s closed 4 years ago
Right now we run some integration tests with cypress.io and it'd be neat if we could get the codecoverage from that.
This looks like a good start on how to achieve that -> https://github.com/cypress-io/code-coverage#examples See also this SO answer -> https://stackoverflow.com/questions/19025336/how-to-get-coverage-data-from-a-django-app-when-running-in-gunicorn
You can get the pid from a background task this way.
abc & echo "PID: $!"
After we run cypress we need to kill the server to collect coverage. kill -2 pid.
kill -2 pid
Right now we run some integration tests with cypress.io and it'd be neat if we could get the codecoverage from that.
This looks like a good start on how to achieve that -> https://github.com/cypress-io/code-coverage#examples See also this SO answer -> https://stackoverflow.com/questions/19025336/how-to-get-coverage-data-from-a-django-app-when-running-in-gunicorn
You can get the pid from a background task this way.
After we run cypress we need to kill the server to collect coverage.
kill -2 pid
.