Interface ReportSettingsInferrer
-
- All Known Implementing Classes:
GenericInferrer,JUnitInferrer,TestNGInferrer
public interface ReportSettingsInferrerInterface to be implemented by classes that infer Project and Job names. Different unit testing frameworks (JUnit or TestNG) are inferred differently.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGLogger instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetPackageName(java.lang.Class<?> clazz)Get class package name, or if it's empty, the unnamed entry.default ReportSettingsgetUnnamedEntries()A default response for any inferrer, with 'Unnamed' Project and Job.ReportSettingsinferReportSettings()Infers Project and Job names from specific unit testing framework annotations.java.lang.StringinferTestName()Infers Test name using specific Unit Test framework annotations.
-
-
-
Method Detail
-
inferReportSettings
ReportSettings inferReportSettings()
Infers Project and Job names from specific unit testing framework annotations.- Returns:
- An instance of
ReportSettingscontaining Project and Job names.
-
getUnnamedEntries
default ReportSettings getUnnamedEntries()
A default response for any inferrer, with 'Unnamed' Project and Job.- Returns:
- An instance of
ReportSettingscontaining 'Unnamed' Project and Job names.
-
getPackageName
default java.lang.String getPackageName(java.lang.Class<?> clazz)
Get class package name, or if it's empty, the unnamed entry.- Parameters:
clazz- Class to infer it's package name.- Returns:
- class package name, or if it's empty, the unnamed entry.
-
inferTestName
java.lang.String inferTestName()
Infers Test name using specific Unit Test framework annotations.- Returns:
- A name of the Test.
-
-