I am writing set of test files with a lot of test functions. I have to generate log file for each run. So I added the lines given below in pytest.ini:
pytest.ini