How can I get currently running testcase name, while in the testsuite collection there are 16 testcases. Tests are executed sequentially (in the order of ad
unittest.TestCase._testMethodName
Example code:
import unittest class BasicTests(unittest.TestCase): def test_print(self): print(self._testMethodName)