unittest.TestResult lacks API to separate subtests
Hello, We're developing Python IDE and integrated it with unittest module using TestResult <https://docs.python.org/3.4/library/unittest.html#unittest.TestResult> inheritor to track test start, end etc. With Py3K, it supports addSubTest method, that is called after all subtests. But there is no method called before and after _each_ subtest (like it is done for regular tests). With out of it I can't fetch each subtest output and display it correctly. I suggest to add subTestStart / subTestEnd methods to help me with my issue and other people with similar issues. I can send patch if you think this is a good idea. Ilya Kazakevich JetBrains <http://www.jetbrains.com/> http://www.jetbrains.com The Drive to Develop
Hi Ilya, That sounds like a fine idea. Can you submit a patch to our bug tracker? bugs.python.org. You'll need to fill out a contributor form as well ( https://www.python.org/psf/contrib/contrib-form/) --Guido On Fri, Jun 24, 2016 at 8:52 AM, Ilya Kazakevich < Ilya.Kazakevich@jetbrains.com> wrote:
Hello,
We’re developing Python IDE and integrated it with unittest module using TestResult <https://docs.python.org/3.4/library/unittest.html#unittest.TestResult> inheritor to track test start, end etc. With Py3K, it supports addSubTest method, that is called after all subtests. But there is no method called before and after _*each*_ subtest (like it is done for regular tests). With out of it I can’t fetch each subtest output and display it correctly.
I suggest to add subTestStart / subTestEnd methods to help me with my issue and other people with similar issues. I can send patch if you think this is a good idea.
Ilya Kazakevich
JetBrains
The Drive to Develop
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (python.org/~guido)
participants (2)
-
Guido van Rossum -
Ilya Kazakevich