get rid of testing full path in pytest

  pytest, python, std

ive a folder with many tests, and when the pytest is running the output looks like it:

tests/t1.py F [ 14%]

tests/t2.py . [ 28%]

tests/t3.py . [ 42%]

tests/t4.py . [ 57%]

tests/t5.py . [ 71%]

tests/t6.py . [ 85%]

tests/t7.py F [ 100%]

I want to get rid of "tests/" in the output of the pytest. is it possible?

Source: Python Questions

LEAVE A COMMENT