classification
Title: Add public TestCase method/property to get result of current test
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Victor Engmark, ezio.melotti, michael.foord, rbcollins
Priority: normal Keywords: patch

Created on 2018-02-23 22:08 by Victor Engmark, last changed 2019-06-27 09:20 by jdemeyer.

Messages (1)
msg312671 - (view) Author: Victor Engmark (Victor Engmark) Date: 2018-02-23 22:08
The community has come up with multiple hacks [1] to be able to inspect the current test result in tearDown (to collect more expensive diagnostics only when the test fails). It would be great to have a documented and simple way to check whether the test currently in play was successful. To be clear, TestCase.wasSuccessful() is not useful in this case, since it only reports whether all tests run so far were successful.

[1] https://stackoverflow.com/q/4414234/96588
History
Date User Action Args
2019-06-27 09:20:46jdemeyersetpull_requests: - pull_request14235
2019-06-27 09:12:20jdemeyersetstage: patch review
pull_requests: + pull_request14235
2019-06-27 08:34:51xtreaksetnosy: + rbcollins, ezio.melotti, michael.foord
stage: patch review -> (no value)

versions: + Python 3.9, - Python 3.8
2019-06-27 08:34:10xtreaksetpull_requests: - pull_request14234
2019-06-27 08:17:58jdemeyersetkeywords: + patch
stage: patch review
pull_requests: + pull_request14234
2018-02-24 01:06:46ppperrysetcomponents: + Library (Lib)
2018-02-24 01:06:34ppperrysetversions: + Python 3.8
2018-02-23 22:08:37Victor Engmarkcreate