It looks like this is not implemented in pytest. There is an opened ticket for it on the pytest github repo.
pytest