On Wednesday, October 30, 2024 12:34:39 AM MST Andrey Rakhmatullin wrote:
> > Do you think it would be helpful to add that to the wiki at:
> > 
> > https://wiki.debian.org/Python/Pybuild#CUSTOMIZATION
> 
> Yes.
> 
> > Should it replace the information about the -k command or are they
> > complimentary, with each having advantages in different scenarios?
> 
> They are complimentary, --ignore skips the file at the test collection
> step (https://docs.pytest.org/en/stable/example/pythoncollection.html), -k
> and -m select/deselect specific tests
> (https://docs.pytest.org/en/stable/example/markers.html).

I added the following text to the wiki:

*The `'-k $exp'` command skips running the test, but the tests are still 
included in the collection. This will cause failures if the tests have 
includes that cannot be satisfied. In that case, the `--ignore` command can be 
used instead, which skips adding the test to the collection.

{{{
export PYBUILD_TEST_ARGS=--ignore path/to/test.py
}}}

-- 
Soren Stoutner
so...@debian.org

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to