docs: def dump_junit(self):
          """Returns a string containing XML mapped to the JUnit schema."""
          testsuites = ElementTree.Element('testsuites', name='therapist', time=str(round(self.execution_time, 2)),
                                           tests=str(self.count()), failures=str(self.count(status=Result.FAILURE)),
                                           errors=str(self.count(status=Result.ERROR)))
  
          for result in self.objects:
              failures = '1' if result.is_failure else '0'
              errors = '1' if result.is_error else '0'
  
              testsuite = ElementTree.SubElement(testsuites, 'testsuite', id=result.process.name,
                                                 name=str(result.process), time=str(round(result.execution_time, 2)),
                                                 tests='1', failures=failures, errors=errors)
  
              testcase = ElementTree.SubElement(testsuite, 'testcase', time=str(round(result.execution_time, 2)))
              testcase.attrib['name'] = result.process.name
  
              if result.is_failure or result.is_error:
                  if result.is_failure:
                      element = ElementTree.SubElement(testcase, 'failure', type='failure')
                  else:
                      element = ElementTree.SubElement(testcase, 'error', type='error')
  
                  if result.error:
                      element.text = result.error
                  else:
                      element.text = result.output if result.output else ''
  
          xmlstr = ElementTree.tostring(testsuites, encoding='utf-8').decode('utf-8')
          return '<?xml version="1.0" encoding="UTF-8"?>\n{}'.format(xmlstr)