We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using the pytest runner, and am using pytest-django. I also have pytest-xdist installed, which allows me to pass -n to run tests in parallel:
-n
$ /usr/local/bin/py.test -n 32 my_project/tests/
The -n param tells pytest-django to create separate databases for each test, each ending in _gw0, _gw1, etc. for each process.
_gw0
_gw1
However, when I run neotest with the pytest runner, all tests use the same database, which leads to conflicting states in tests.
Is there a way to run neotest-python tests such that each test uses its own database?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using the pytest runner, and am using pytest-django. I also have pytest-xdist installed, which allows me to pass
-n
to run tests in parallel:The
-n
param tells pytest-django to create separate databases for each test, each ending in_gw0
,_gw1
, etc. for each process.However, when I run neotest with the pytest runner, all tests use the same database, which leads to conflicting states in tests.
Is there a way to run neotest-python tests such that each test uses its own database?
The text was updated successfully, but these errors were encountered: