code: private void createLog(File outputDirectory, boolean onlyFailures) throws Exception
      {
          if (!Reporter.getOutput().isEmpty())
          {
              VelocityContext context = createContext();
              context.put(ONLY_FAILURES_KEY, onlyFailures);
              generateFile(new File(outputDirectory, OUTPUT_FILE),
                           OUTPUT_FILE + TEMPLATE_EXTENSION,
                           context);
          }
      }
docs: Generate a groups list for each suite.
  @param outputDirectory The target directory for the generated file(s).