Class ReportNamer

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

public class ReportNamer extends 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 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 String getNormalizedTestReportNameFor(String testName)
    • optionallyCompressed

      public String optionallyCompressed(String text)
    • getSimpleTestNameFor

      public 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 String getNormalizedTestNameFor(Story userStory)
    • getNormalizedTestNameFor

      public String getNormalizedTestNameFor(String name)
    • withNoCompression

      public ReportNamer withNoCompression()
    • withPrefix

      public ReportNamer withPrefix(String prefix)