Python Forum

Full Version: how to generate html report for each folder using pytest
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am using pytest html for generating reports

Now my framework consists of 8 folders namely
1. Test 2. Test_1 3. Test_2.....8. Test_8

Each folder has test_suite.py and conftest.py
To run specific tests in all folders I am using markers named P0

so I am running command in below manner
pytest -v -s -m P0 --html=p0.html
but html report is generating for all test cases at a time
Can I know how I need to create html report for indiduval folder instead of all folders at a time

Thanks for your help in advance

Regards,
Sarath Chandra