Closed
Description
Running pytest with -v option, I am obtaining an output of this type:
ToolTest/test/bug_001/test.py::TestBug001::test_bug_001 <- test.py PASSED
I would like to customize the test id, e.g. removing <- test.py
to get:
ToolTest/test/bug_001/test.py::TestBug001::test_bug_001 PASSED
To do this, I tried to write a plugin with the hook:
def pytest_runtest_logstart(nodeid, location):
but seems that my hook is called after the test id has already been printed on the terminal.
So I was wondering if there is a way to do this?
Thanks