Class ReportNamer

java.lang.Object
net.thucydides.core.model.ReportNamer

public class ReportNamer
extends java.lang.Object
Determies the correct default name for test reports.
Author:
johnsmart
  • Constructor Details

    • ReportNamer

      public ReportNamer​(ReportType type, boolean compressedFilename)
  • Method Details

    • forReportType

      public static ReportNamer forReportType​(ReportType type)
    • getNormalizedTestNameFor

      public java.lang.String getNormalizedTestNameFor​(TestOutcome testOutcome)
      Return a filesystem-friendly version of the test case name. The file system version should have no spaces and have the XML file suffix.
    • getNormalizedTestReportNameFor

      public java.lang.String getNormalizedTestReportNameFor​(java.lang.String testName)
    • optionallyCompressed

      public java.lang.String optionallyCompressed​(java.lang.String text)
    • getSimpleTestNameFor

      public java.lang.String getSimpleTestNameFor​(TestOutcome testOutcome)
      Return a filesystem-friendly version of the test case name. The filesytem version should have no spaces and have the XML file suffix.
    • getNormalizedTestNameFor

      public java.lang.String getNormalizedTestNameFor​(Story userStory)
    • getNormalizedTestNameFor

      public java.lang.String getNormalizedTestNameFor​(java.lang.String name)
    • withNoCompression

      public ReportNamer withNoCompression()
    • withPrefix

      public ReportNamer withPrefix​(java.lang.String prefix)