Comments (7)
feel free to do that, also please note that this plugin is currently unmaintained
from pytest-forked.
I believe pytest-forked needs to develop some patterns or best practices around it. Most importantly (to me) the --forked
flag is a very wide brush which slows down the entire testsuite dramatically when there may only be a few test requiring boxedness. See #23 too.
from pytest-forked.
mypersonal oppinion is that this is better served on top of actual xdist, forked has a number of drawbacks, however xdist is not in a shape to support those details (lack of support for multiprocessing among other things)
from pytest-forked.
@RonnyPfannschmidt I don't understand what you mean. Why do you both think that xdist would serve #23 better and that it can't serve #23 at the same time?
from pytest-forked.
@untitaker foked actually forks the interpreter, kills the stdio connection and then at a random later point sends all reports via the stdio fds of the child to the parent
xdist on the other hand starts a interpreter, collects tests completely separate, then just runs that test
so using xdist machinery would make for better isolation and better execution/reporting
however the scheduling mechanisms and the process execution mechanisms in xdist need a feature extension for this use-case to work nicely
from pytest-forked.
Does xdist run each test in a separate process, or does it fork to create a workerpool? I definetly need one process per boxed test.
From my understanding you have collection per-worker in xdist but I don't see how that's beneficial to me here.
Right now I cannot use parallelization of xdist for my own purposes anyway because I have certain tests that cannot be run in parallel (because they write to a shared pg)
from pytest-forked.
what you describe is the current behaviour of xist,
what i described is an additional scheduling mechanism that would allow to collect exactly single test for a specific sub-process so that specific tests could be deferred to processes that exit after running a single test
from pytest-forked.
Related Issues (20)
- pytest 6.0.0rc1: TypeError: append() takes exactly one argument (5 given) HOT 12
- Build failure due to setuptools in pyproject.toml HOT 2
- Pytest hangs when using faulthandler_timeout with pytest-forked HOT 1
- v1.3.0 not available on conda-forge HOT 2
- 1.3.0: tox warnings and pytest is failing with `flaky` and `relaxed` extensions HOT 13
- test suite fails `hypothesis` is in the environment (a test dependency of pytest) HOT 8
- crashing test hangs `pytest` HOT 5
- Alternative to fork in Windows HOT 2
- next release ETA HOT 1
- Missing warnings with pytest --forked option HOT 1
- tests work in 6.2.5 but fail in 7.x.x HOT 12
- Update requirements HOT 7
- Mac: Bad file descriptor HOT 3
- test_xfail[strict_xfail|non_strict_xfail] fail with pytest 7.2.0 HOT 2
- py==1.11.0 vulnerability HOT 3
- Testing support for OpenIndiana (sunos5)
- Test failures with Python 3.12 due to warnings (from pytest) HOT 3
- xdist master cant see workers' workeroutput when using --forked
- AttributeError: module 'py' has no attribute 'process' HOT 7
- [tests] test_xfail fails against Pytest 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-forked.