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

use pytester to test our pytest plugin #140

Open
skarzi opened this issue Oct 5, 2020 · 0 comments
Open

use pytester to test our pytest plugin #140

skarzi opened this issue Oct 5, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@skarzi
Copy link
Collaborator

skarzi commented Oct 5, 2020

django_test_migration is growing, so it's pytest plugin also, e.g. in #138 more logic was added to it.
Currently, most tests use subprocess to run pytest and make some assertions on its output.
The following approach is limited, it requires quite much code in each test and it runs pytest on all project's tests by default.
pytest has pytester plugin that is really useful for testing custom pytest plugins, so it will be nice to add more detailed tests of our django_test_migration plugin using pytester.
We could also try to remove pytest_plugin from the coverage:run omit option, because it should be covered by tests then.

@skarzi skarzi added the enhancement New feature or request label Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant