Class ReportNamer

java.lang.Object
net.thucydides.model.domain.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)
    • getNormalizedReportNameFor

      public String getNormalizedReportNameFor(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.
    • getNormalizedReportNameFor

      public String getNormalizedReportNameFor(Story userStory)
    • getNormalizedReportNameFor

      public String getNormalizedReportNameFor(String name)
    • withNoCompression

      public ReportNamer withNoCompression()
    • withPrefix

      public ReportNamer withPrefix(String prefix)