docs: public void generateReport(List<XmlSuite> xmlSuites,
                                 List<ISuite> suites,
                                 String outputDirectoryName)
      {
          removeEmptyDirectories(new File(outputDirectoryName));
          
          File outputDirectory = new File(outputDirectoryName, REPORT_DIRECTORY);
          outputDirectory.mkdirs();
  
          Collection<TestClassResults> flattenedResults = flattenResults(suites);
  
          for (TestClassResults results : flattenedResults)
          {
              VelocityContext context = createContext();
              context.put(RESULTS_KEY, results);
  
              try
              {
                  generateFile(new File(outputDirectory, results.getTestClass().getName() + '_' + RESULTS_FILE),
                               RESULTS_FILE + TEMPLATE_EXTENSION,
                               context);
              }
              catch (Exception ex)
              {
                  throw new ReportNGException("Failed generating JUnit XML report.", ex);
              }
          }
      }