Article View: linux.debian.maint.python
Article #69Re: best way[s] to run more verbose pytest in dh_auto_test
From: Andrey Rakhmatullin
Date: Sat, 14 Nov 2026 22:50
Date: Sat, 14 Nov 2026 22:50
50 lines
3696 bytes
3696 bytes
--5nMpa7YW96LJwIrx Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3D` 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=20 args to PYBUILD_TEST_ARGS, the same ones the upstream calls pytest with=20 (remember that upstreams don't normally run tests by running pytest=20 without args as we do, they use something like tox or hardcode pytest=20 commands in their CI). If the upstream doesn't support it (e.g. it needs=20 some project-level coverage config to make sense, or it needs direct=20 coverage calls instead of pytest-cov) I wouldn't bother. --=20 WBR, wRAR --5nMpa7YW96LJwIrx Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmr448cACgkQM2L3AxpJ kuENCg/+JWB6SUTOyCFjiYPfuhX6qSjdgCDkF3rEPhvO03CnN6hBXvM3kWBvmlAU T8yiisDYgn2qLQltJNTErXr513hMAD7suVKvaPsvTsK7gxZAZyZbmEHaJEdAxVCG dNEZgY0ryFNjl+IfMpKtrtew7n7Pji/DVbGOaYhuAagZpYYid92IL+ZQTt4eMIQx gAVxFVfFLFhIAzGGq8LTMNVWStgNZVLBgOqyNztHqINDkqKY0m2na3wFQoO4+r2k wLCkOjaAy4XtZClwVEG1SQdGmSxUGfAIpxIxXb0G2RsXs1lXw7WgL+JuB8vQBdCf 9oOQ+mo6ts5/BAmeTbfpSGVnp7mfRhWt/Dlv+bkHbkMINCyuGdCjU1+pRT6lXHkN OA7GcMvrrUd8RVnAb1AOGBAdrIwZGPVYsfKaYkM2Bcs1n1V9n2wi/K3KImBSk9vU ujjq5w+o4sXZulAp1sVR1Xs7kM8UyOGL/V7+r1sQ6JC7W6705dztPpm6EwRcYXVw O3QF/9VGT95cIZE0IwxQK+L9/oZJ4tWZ9JzPIBaCYwp79KgrgCghup+mLyfehmIc K/l8/Bpuwj0vxYwNzaX/x1tVnwZQZ5H6V+jXp9erNXbYCDF1j2d2XmMqU09rNeSK 2pp1CTXxBH+w0fu+fw079U+ZKyeYXbZQNTwnisvkCN8vJGeA+p0= =ILP1 -----END PGP SIGNATURE----- --5nMpa7YW96LJwIrx--
Technical Details
Message-ID:
<NZuJk-bVcf-47@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NZupX-bV3Y-5@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andrey Rakhmatullin <wrar@debian.org> Newsgroups: linux.debian.maint.python Subject: Re: best way[s] to run more verbose pytest in dh_auto_test Date: Sat, 14 Nov 2026 23:50:02 +0100 Message-ID: <NZuJk-bVcf-47@gated-at.bofh.it> References: <NZupX-bV3Y-5@gated-at.bofh.it> X-Mailbox-Line: From debian-python-request@lists.debian.org Sat Nov 14 22:42:35 2026 Old-Return-Path: <wrar@debian.org> X-Amavis-Spam-Status: No, score=-4.401 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5nMpa7YW96LJwIrx" Content-Disposition: inline X-Debian-User: wrar X-Mailing-List: <debian-python@lists.debian.org> archive/latest/24189 List-ID: <debian-python.lists.debian.org> List-URL: <https://lists.debian.org/debian-python/> List-Archive: https://lists.debian.org/msgid-search/avjjx8wEIDjOxBhP@belkar.wrar.name Approved: robomod@news.nic.it Lines: 50 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 15 Nov 2026 03:42:21 +0500 X-Original-Message-ID: <avjjx8wEIDjOxBhP@belkar.wrar.name> X-Original-References: <87ld6vyrq1.fsf@navis.mail-host-address-is-not-set>