Log test case start and end
This commit is contained in:
parent
777486a5be
commit
1b2eee058c
1 changed files with 5 additions and 1 deletions
|
@ -444,5 +444,9 @@ def workaroundPytestLogError():
|
||||||
|
|
||||||
|
|
||||||
workaroundPytestLogError()
|
workaroundPytestLogError()
|
||||||
|
|
||||||
|
@pytest.fixture(scope='function', autouse=True)
|
||||||
|
def logCaseStart(request):
|
||||||
|
logging.info("---- Start test case: %s ----" % request._pyfuncitem)
|
||||||
yield None # Wait until all test done
|
yield None # Wait until all test done
|
||||||
logging.getLogger('').setLevel(logging.getLevelName(logging.CRITICAL))
|
logging.info("---- End test case: %s ----" % request._pyfuncitem)
|
||||||
|
|
Loading…
Reference in a new issue