Python Forum
unittest generates multiple files for each of my test case, how do I change to 1 file - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: unittest generates multiple files for each of my test case, how do I change to 1 file (/thread-39424.html)



unittest generates multiple files for each of my test case, how do I change to 1 file - zsousa - Feb-15-2023

I've build a framework using the data driven approach. Basically, a test case represents 1 file and each file can have several assertion points.
Currently unittest is creating a xml file for each testcase, what I want is to create 1 result file for all the test cases I run, instead of 1 for each file.

Is there a way to do this ?