On Sat, Nov 14, 2026 at 05:26:46PM -0500, Nicholas D Steeves wrote:
There doesn't seem to be any documentation on the following, so I think
it's worth having it here on-list, if nowhere else:

I've been wondering how other developers make pytest run with -v, -vv,
or -vvv

You can simply add those to `export PYBUILD_TEST_ARGS=` in d/rules.

I also wonder if anything special needs to be done for projects that use
a "coverage" type summary.

If the upstream already supports it you need to add explicit pytest-cov args to PYBUILD_TEST_ARGS, the same ones the upstream calls pytest with (remember that upstreams don't normally run tests by running pytest without args as we do, they use something like tox or hardcode pytest commands in their CI). If the upstream doesn't support it (e.g. it needs some project-level coverage config to make sense, or it needs direct coverage calls instead of pytest-cov) I wouldn't bother.


--
WBR, wRAR

Attachment: signature.asc
Description: PGP signature

Reply via email to