Skip to content

I added automatic url tests for all urls of an app #1476

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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

AndreasDickow
Copy link

I modified show_urls to test server responses of all urls of a django app

./manage.py test_urls iterates over all urls and returns patterns + url response codes
at the end the coverage of urls producing no error code is shown, it takes optional arguments --base defaults to 127.0.0.1:8000/ and --mockpk defaults to "1" which is inserted in fields

test_urls requires a running server instance

@coveralls
Copy link

coveralls commented Feb 6, 2020

Coverage Status

Coverage decreased (-1.3%) to 70.84% when pulling cc23c72 on BIZFactoryGmbH:master into 0ad61ae on django-extensions:master.

@trbs
Copy link
Member

trbs commented Feb 10, 2020

Thanks !

I like the idea, but I'm a bit worried for the code duplication it creates...
Do you think you can split out the common code between show_urls and test_urls ?

@trbs trbs marked this pull request as draft April 29, 2020 08:27
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.

3 participants