Open
Conversation
…nto spike/pytest_xdist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
generally development of pytest and xdist seems slow, hacky, not documented and built on bad foundations,
nothing is composable, async, fixtures, forced incremental execution, parallelism work individually but not together in any combination without hacking with weird glue code.
Issues with pytest:
xdist runs a pool of processes and parallelizes pytest
Suggestion:
a good light testing framework for our needs is less then 200 lines of code, one or two days of work, let's perhaps run away from all this?
we can then have pluggable test parsers depending on the file prefix, "caitest_" files could be parsed by our awesome nice async tester, while "test_" ones are passed to pytest..
for now, instead of xdist we can DIY, parallelize pytest on a per file basis (my spike here,
getting the same performance as XDIST (running our full test stack)),
this allows us to in the future implement our own good testcase parser.
XDIST 0m25-30s
IVAN 0m25-30s
PYTEST 1m0.578s
to run my test runner:
cd tests python testrunner.pyto run xdist:
tests for the new parser can look very similar to pytest tests and existing pytest tests that we feel are slow can be ported quickly, if not be compatible off the bat.
not sure what the consequences are in terms of devs using their IDEs to integrate testing?