code: def readfiles():
      
      tests = list(filter(lambda x: x.endswith('.py'), os.listdir(TESTPATH)))
      tests.sort()
      files = []
  
      for test in tests:
          text = open(TESTPATH + test, 'r').read()
  
          try:
              class_, desc, cause, workaround, code = [x.rstrip() for x in \
                                                      list(filter(None, re.split(SPLIT, text)))]
              output = Output(test, class_, desc, cause, workaround, code, '', '', '')
              files.append(output)
          except IndexError:
              print('Incorrect format in file ' + TESTPATH + test)
  
      return files
docs: Reads test files