-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity
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
Metadata
Metadata
Assignees
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity