Reputation: 25
my runtests.sh file contains the below scripts
I'm trying to obtain a single report file which should contain the execution report of both file_1 & file 2.
Upvotes: 2
Views: 1287
Reputation: 15526
Your best option is to run both files in the same run command, (as shown below), which will combine all results into the same report.
pytest -v -s file_1.py file_2.py --html=report.html
Upvotes: 1