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

Enhancement: Support for running tests from a built wheel without code #132

Open
joemarshall opened this issue Apr 15, 2024 · 0 comments
Open

Comments

@joemarshall
Copy link
Collaborator

What I'd like:

A way that given a pyodide wheel, I can run tests from it (e.g. from a test subpackage), have the list of tests extracted, then each run in turn, so they are correctly reported by pytest.

Why?

Because I'm building pyarrow, and the existing --run-tests-in-pyodide doesn't work, because conftest.py doesn't import correctly in a source distribution, because there are cython dependencies. Annoyingly I can't just install the local built copy to workaround this, because if I am in the pyarrow directory for the tests, it looks for the cython deps there also.

How I think it should work

A two stage process -

  1. Discover tests on pyodide. This installs the wheel and then populates a list of tests by calling pytest.main on the pyodide distribution.
  2. Run tests - this creates test cases based on the output of 1, and then calls them in the same way --run-tests-in-pyodide does.
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

No branches or pull requests

1 participant