Class JUnitReportReporter

    • Constructor Detail

      • JUnitReportReporter

        public JUnitReportReporter()
    • Method Detail

      • generateReport

        public void generateReport​(java.util.List<XmlSuite> xmlSuites,
                                   java.util.List<ISuite> suites,
                                   java.lang.String defaultOutputDirectory)
        Description copied from interface: IReporter
        Generate a report for the given suites into the specified output directory.
        Specified by:
        generateReport in interface IReporter
      • getDisabledTestCount

        private static int getDisabledTestCount​(java.util.Set<ITestNGMethod> methods)
      • putElement

        private boolean putElement​(XMLStringBuffer xsb,
                                   java.lang.String tagName,
                                   java.util.Properties attributes,
                                   boolean hasChildElements)
        Put a XML start or empty tag to the XMLStringBuffer depending on hasChildElements parameter
      • safeSetProperty

        private void safeSetProperty​(java.util.Properties p,
                                     java.lang.String key,
                                     java.lang.String value)
        Set property if value is non-null
      • getNextConfiguration

        private long getNextConfiguration​(ListMultiMap<java.lang.Object,​ITestResult> configurations,
                                          ITestResult tr)
        Add the time of the configuration method to this test method. The only problem with this method is that the timing of a test method might not be added to the time of the same configuration method that ran before it but since they should all be equivalent, this should never be an issue.
      • getFileName

        protected java.lang.String getFileName​(java.lang.Class cls)
      • getTestName

        protected java.lang.String getTestName​(ITestResult tr)
      • formatTime

        private java.lang.String formatTime​(float time)
      • addResults

        private void addResults​(java.util.Set<ITestResult> allResults,
                                java.util.Map<java.lang.Class<?>,​java.util.Set<ITestResult>> out)