Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Run tests with pytest and measure coverage #339

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

mgax
Copy link
Contributor

@mgax mgax commented Nov 6, 2023

This patch adds pytest-django, to run the testsuite with pytest, and pytest-cov, to measure coverage.

Refs. #131

@mgax mgax changed the title Run tests with pytest and measure coverage feat: Run tests with pytest and measure coverage Nov 6, 2023
@@ -2,4 +2,4 @@

python /app/manage.py migrate --no-input
python /app/manage.py createcachetable
/usr/local/bin/gunicorn --config /app/docker/gunicorn.py --reload ietf.wsgi
exec /usr/local/bin/gunicorn --config /app/docker/gunicorn.py --reload ietf.wsgi
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change helps with development: docker compose restart application will no longer hang for 10 seconds, because the TERM signal will be passed directly to gunicorn.

@mgax mgax marked this pull request as ready for review November 6, 2023 12:48
@kesara
Copy link
Member

kesara commented Nov 7, 2023

@mgax Thanks for the PR.
I've added the CODECOV_TOKEN for this branch.
If you get around to it this can be uploaded to codecov.io.

@kesara kesara merged commit bd1ee93 into ietf-tools:main Nov 7, 2023
5 checks passed
@mgax mgax deleted the pytest branch November 7, 2023 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants