I use xunitmerge to merge all pytest junit xml output into one single junit xml. Command used to run pytest and merge are below:
for i in `ls test_*`
do
test_suit=$(echo $i |cut -d'.' -f1)
py.test $i --tb=long --html=Reports/${test_suit}.html --junitxml=Reports/${test_suit}.xml -vv
done
xunitmerge Reports/*.xml Reports/discovery.xml
Here, all xml are merged to one single xml file.
Is there any tool to convert multiple py.test html files to one single html report file?
Note: when I run py.test without specifying test_ it triggers all files starting with test_ automatically. But since I use the ordering plugin, Order in multiple files I can't use to run py.test without specifying specific test case file.