bpo-34279: Issue a warning if no tests have been executed#10150
Conversation
dc0da37 to
c684dd4
Compare
October 27, 2018 12:51
vstinner
left a comment
There was a problem hiding this comment.
I suggest to add a list of tests which ran no tests to the Regrtest class, so it becomes possible to list them in display_result().
It would be better if test_sys is listed in the final report when running: "./python -m test -j0 test_os test_sys -m test_access". Currently, you have to read all logs to notice that test_sys ran no tests.
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: And if you don't make the requested changes, you will be poked with soft cushions! |
Sorry, something went wrong.
8a64c0b to
367cfd1
Compare
November 28, 2018 21:41
367cfd1 to
2272ba8
Compare
November 28, 2018 22:17
This command runs test_os.test_access(), it does not run "no test": it runs one test :-) Maybe we should only display NO TEST RUN is 0 test has been run? So display "SUCCESS" on the first example. NO TEST RUN would make sense on such example: Sorry if I asked something different, I wasn't sure of what I want :-) "Tests result: NO TEST RUN" means "you did something wrong", whereas "./python -m test -j0 test_os test_sys -m test_access" is not a mistake: it can be deliberate to run 0 test in test_sys. This is especially true when you use "./python -m test.bisect". |
Sorry, something went wrong.
This reverts commit 2272ba8.
That was the previous behaviour :) Basically, without commit 2272ba8 this is the situation: I reverted 2272ba8 in 9c7e7b5, so this PR is how it was before it (as in the example in this message). |
Sorry, something went wrong.
vstinner
left a comment
There was a problem hiding this comment.
LGTM, but you may move the NEWS entry to the Tests category.
Sorry, something went wrong.
* bpo-34605, libregrtest: Rename --slaveargs to --worker-args (GH-9099) Rename also run_tests_slave() to run_tests_worker(). (cherry picked from commit 012f5b9) * bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10150) (cherry picked from commit 9724348) * test_regrtest: remove unused threading import
* bpo-34605, libregrtest: Rename --slaveargs to --worker-args (pythonGH-9099) Rename also run_tests_slave() to run_tests_worker(). (cherry picked from commit 012f5b9) * bpo-34279, regrtest: Issue a warning if no tests have been executed (pythonGH-10150) (cherry picked from commit 9724348) * test_regrtest: remove unused threading import (cherry picked from commit 8a73cac) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-34605, libregrtest: Rename --slaveargs to --worker-args (GH-9099) Rename also run_tests_slave() to run_tests_worker(). (cherry picked from commit 012f5b9) * bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10150) (cherry picked from commit 9724348) * test_regrtest: remove unused threading import (cherry picked from commit 8a73cac) Co-authored-by: Victor Stinner <vstinner@redhat.com>
https://bugs.python.org/issue34279