Class JUnitReportGenerator

java.lang.Object
org.eclipse.ease.lang.unittest.reporters.JUnitReportGenerator
All Implemented Interfaces:
IReportGenerator

public final class JUnitReportGenerator extends Object implements IReportGenerator
Creates reports of unit test results. See http://llg.cubic.org/docs/junit/ for the accepted XML format
  • Constructor Details

    • JUnitReportGenerator

      public JUnitReportGenerator()
  • Method Details

    • createReport

      public String createReport(String title, String description, ITestEntity testEntity)
      Description copied from interface: IReportGenerator
      Creates report data as string.
      Specified by:
      createReport in interface IReportGenerator
      Parameters:
      title - report title
      description - generic description
      testEntity - test element to be exported
      Returns:
      String containing full test report
    • getDefaultExtension

      public String getDefaultExtension()
      Description copied from interface: IReportGenerator
      Returns the default file extension to be used for this kind of report without the preceding dot (eg "txt").
      Specified by:
      getDefaultExtension in interface IReportGenerator
      Returns:
      file extension to be used