]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109162: libregrtest: add TestResults class (#109208)
authorVictor Stinner <vstinner@python.org>
Sun, 10 Sep 2023 02:30:43 +0000 (04:30 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Sep 2023 02:30:43 +0000 (02:30 +0000)
commitdb5bfe91f822bb06b4c8fe7c58e649694c854bf2
tree7d4496cccf320041b292a39638b9394083403790
parenta341750078e6de5206560adcf53337e0172ae1c6
gh-109162: libregrtest: add TestResults class (#109208)

* Add TestResults class.
* Move Regrtest methods to TestResults:

  * accumulate_result(): now takes a RunTests parameter
  * get_executed()
  * no_tests_run()

* Add methods to TestResults:

  * add_junit()
  * display_result()
  * display_summary()
  * need_rerun()
  * prepare_rerun()
  * write_junit()

* Rename 'need_rerun' attribute to 'bad_results'.
* Rename 'total_stats' attribute to 'stats'.
Lib/test/libregrtest/main.py
Lib/test/libregrtest/results.py [new file with mode: 0644]
Lib/test/libregrtest/runtest_mp.py