Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #16270
| Path | csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Stefano Rivera <stefanor@debian.org> |
| Newsgroups | linux.debian.maint.python, linux.debian.bugs.dist |
| Subject | Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" |
| Date | Tue, 10 Sep 2024 17:10:01 +0200 |
| Message-ID | <JlaFb-bkri-1@gated-at.bofh.it> (permalink) |
| References | <FwzIZ-6MUo-9@gated-at.bofh.it> <JkqCl-aRPf-9@gated-at.bofh.it> <FwzIZ-6MUo-9@gated-at.bofh.it> <JkxNv-aWiR-7@gated-at.bofh.it> <JkI6d-b2KV-1@gated-at.bofh.it> <JkOuZ-b6Wk-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Tue Sep 10 15:06:12 2024 |
| Old-Return-Path | <stefano@rivera.za.net> |
| X-Amavis-Spam-Status | No, score=-107.012 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| Mail-Followup-To | Julian Gilbey <julian@d-and-j.net>, debian-python@lists.debian.org, Louis-Philippe Véronneau <pollo@debian.org>, 1024971@bugs.debian.org |
| X-Gpg-Public-Key | http://www.rivera.za.net/stefano.gpg |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | quoted-printable |
| User-Agent | NeoMutt/20220429 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/22330 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20240910150547.gbzjkqljjydndgm7@satie.tumbleweed.org.za |
| Approved | robomod@news.nic.it |
| Lines | 51 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | debian-python@lists.debian.org, Louis-Philippe Véronneau <pollo@debian.org>, 1024971@bugs.debian.org |
| X-Original-Date | Tue, 10 Sep 2024 15:05:47 +0000 |
| X-Original-Message-ID | <20240910150547.gbzjkqljjydndgm7@satie.tumbleweed.org.za> |
| X-Original-References | <1d836a0a-b926-aaa1-c04c-5a9d6910347a@debian.org> <6b7zvq5bjmmfp3nogosqrgejexhne6mjyzfsih7iyrlaixa7hv@clcppesyi4m7> <1d836a0a-b926-aaa1-c04c-5a9d6910347a@debian.org> <Zt4YPYdOhhgX3IBY@d-and-j.net> <20240909083152.6gthpgmyza7hxmry@satie.tumbleweed.org.za> <Zt8SF353Xipr6fKp@d-and-j.net> |
| Xref | csiph.com linux.debian.maint.python:16270 linux.debian.bugs.dist:1212199 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hi Julian (2024.09.09_15:19:51_+0000)
> That seems a bit heavy to ask for.
>
> Is there any way of identifying those packages that do genuinely use
> unittest?
From 6438 build logs:
- 651 don't call dh_auto_test
- 2180 do something custom
- 1989 use pytest
- 25 use nose
- 18 use nose2
- 23 use tox
- 3 use stestr
- 1561 packages use pybuild's unittest runner
* 391 pass
* 1170 fail
+ 1139 NO TESTS RAN
+ 33 the test suite failed
(numbers don't quite add up, because this was a lot of grep | wc -l)
> If there are not that many of them, then implementing a
> --test-unittest option would be a good way to go. I would imagine the
> following timeline:
>
> (1) --test-unittest is introduced as an option to explicitly select
> unittest as the test framework. When --test-unittest is specified,
> the test will fail if no tests are found. unittest is still used as a
> fallback test framework; in this case, the dh_auto_test call will
> succeed if no tests are run.
>
> (2) Add some sort of warning for pybuild-using packages that run
> dh_auto_test but haven't specified a test framework and for which
> autodetection of the test framework fails. If there aren't any tests
> to run, an empty override_dh_auto_test target should be specified.
>
> (3) Stop using unittest as the default test framework, and fail if no
> test framework has been specified or autodetected.
>
> But that might be overkill for something which may not actually be
> much of a problem.
Yeah, that can work. We can also just abort after step 2.
Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Stefano Rivera <stefanor@debian.org> - 2024-09-08 16:00 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Scott Kitterman <debian@kitterman.com> - 2024-09-08 19:30 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Louis-Philippe Véronneau <pollo@debian.org> - 2024-09-12 17:40 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Julian Gilbey <julian@d-and-j.net> - 2024-09-08 23:40 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Stefano Rivera <stefanor@debian.org> - 2024-09-09 10:40 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Julian Gilbey <julian@d-and-j.net> - 2024-09-09 17:30 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Stefano Rivera <stefanor@debian.org> - 2024-09-10 17:10 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Alexandre Detiste <alexandre.detiste@gmail.com> - 2024-09-12 16:30 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Stefano Rivera <stefanor@debian.org> - 2024-09-12 16:30 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Stefano Rivera <stefanor@debian.org> - 2024-09-09 10:40 +0200
Re: Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s" Timo Röhling <roehling@debian.org> - 2024-09-13 11:00 +0200
csiph-web