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
Describe pytest execution in developer documentation #939
Comments
I think I used |
I'll take that as no opposition to remove it then 😉 |
I just used it when I wanted to compute the code coverage locally. If we could keep that functionality, that would be nice, but I'm also fine with just using pytest directly. |
We could simply move the |
This is not an option for me. First of all, I do not want to get a coverage report whenever I run
will, for some reason run the entire test suite (as opposed to Regarding a different options: How about simply removing the make targets, and document in |
|
I never use Also: lets just discuss this in the next meeting? |
Good to know ...
I think there is not reason to remove |
Dev meeting: Decided to remove |
The remaining work in this issue is actually to describe pytest execution in the non-containerized environment in the dev docs. This should include most common options/setups like running a single file, filtering with |
Currently we rely, via the Makefile, to run
python setup.py pytest
. This is deprecated by setuptools. It installs dependencies witheasy_install
as opposed to pip.Parallel to that we have the CI test scripts which all run
pytest
(under xvfb-run or mpirun at times) directly in the end. These take care to setup the env previous to running pytest. That means installing requirements/extras and ensuring pyMOR's extensions are build. Ideally we'd want a replacement forpython setup.py pytest
that does all that, but relies on metadata in pyproject.toml.AFAICT there's currently no PEP for this, nor a project that fits completely.
Some references:
My current goto replacement would probably be using
pip-run .[ci,optional] -- py.test --pyargs pymortests -c .ci/installed_pytest.ini
. This still needs to have pip-run already installed ofc, but should take of most of the rest. It would also build a new wheel for pymor on each invocation (pip-run does not support editable installs), which is not ideal at all.Seperate from this is the question of removing the
full-test
Makefile target. It (only) installs pytest plugins that are not included in our CI setup dependencies and then runs pytest. Neither @sdrave nor I use it or remember why it's there. How about you @pmli?Ref. #910
The text was updated successfully, but these errors were encountered: