Skip to content

Conversation

realVinayak
Copy link
Contributor

Fixes #7189

@realVinayak
Copy link
Contributor Author

@CarolineDenis

this branch allows running tests while measuring code coverage. There are still some issues to be fixed here, but it works for preliminary analysis

Comment on lines +143 to +148
run: |
cat .coveragerc
set +e
./ve/bin/coverage run --source='./specifyweb/' manage.py test specifyweb --verbosity=3 --keepdb
set -e
./ve/bin/coverage report
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The set +e is needed here because, apparently, the test suite also considers settings/init.py, which crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋Back Log
Development

Successfully merging this pull request may close these issues.

DevOps: Get code coverage for backend on GitHub actions
1 participant