Python Forum
unittest generates multiple files for each of my test case, how do I change to 1 file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unittest generates multiple files for each of my test case, how do I change to 1 file
#1
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 ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What does .flush do? How can I change this to write to the file? Pedroski55 3 153 Yesterday, 01:15 PM
Last Post: snippsat
  problem in using unittest akbarza 2 314 Feb-25-2024, 12:51 PM
Last Post: deanhystad
  Class test : good way to split methods into several files paul18fr 4 485 Jan-30-2024, 11:46 AM
Last Post: Pedroski55
  python convert multiple files to multiple lists MCL169 6 1,547 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  logging: change log file permission with RotatingFileHandler erg 0 1,031 Aug-09-2023, 01:24 PM
Last Post: erg
  change directory of save of python files akbarza 3 881 Jul-23-2023, 08:30 AM
Last Post: Gribouillis
  How can I change the uuid name of a file to his original file? MaddoxMB 2 926 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  splitting file into multiple files by searching for string AlphaInc 2 897 Jul-01-2023, 10:35 PM
Last Post: Pedroski55
  Merging multiple csv files with same X,Y,Z in each Auz_Pete 3 1,163 Feb-21-2023, 04:21 AM
Last Post: Auz_Pete
  Find duplicate files in multiple directories Pavel_47 9 3,105 Dec-27-2022, 04:47 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020