Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #16270
| 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 | 2024-09-10 17:10 +0200 |
| Message-ID | <JlaFb-bkri-1@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <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> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
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