public class Configuration extends Object
Constructor and Description |
---|
Configuration(File reportOutputDirectory,
String projectName) |
Modifier and Type | Method and Description |
---|---|
void |
addClassifications(String name,
String value)
Adds metadata that will be displayed at the main page of the report.
|
String |
getBuildNumber() |
List<Map.Entry<String,String>> |
getClassifications()
Returns the classification for the report.
|
File |
getEmbeddingDirectory() |
String |
getProjectName() |
File |
getReportDirectory() |
SortingMethod |
getSortingMethod()
Returns the default sorting method.
|
Collection<Pattern> |
getTagsToExcludeFromChart() |
int |
getTrendsLimit() |
File |
getTrendsStatsFile() |
boolean |
isParallelTesting() |
boolean |
isRunWithJenkins() |
boolean |
isTrendsStatsFile()
Checks if the file for the trends was set.
|
void |
setBuildNumber(String buildNumber)
Sets number of the build.
|
void |
setParallelTesting(boolean parallelTesting) |
void |
setRunWithJenkins(boolean runWithJenkins) |
void |
setSortingMethod(SortingMethod sortingMethod)
Configure how items will be sorted in the report by default.
|
void |
setTagsToExcludeFromChart(String... patterns)
Stores the regex patterns to be used for filtering out tags from the 'Tags Overview' chart
|
void |
setTrends(File trendsFile,
int trendsLimit)
Sets configuration for trends.
|
void |
setTrendsStatsFile(File trendsFile)
Calls
setTrends(File, int) with zero limit. |
public boolean isParallelTesting()
public void setParallelTesting(boolean parallelTesting)
public boolean isRunWithJenkins()
public void setRunWithJenkins(boolean runWithJenkins)
public File getReportDirectory()
public File getTrendsStatsFile()
public boolean isTrendsStatsFile()
true
if the file location was provided, otherwise false
public void setTrendsStatsFile(File trendsFile)
setTrends(File, int)
with zero limit.trendsFile
- file with trendspublic int getTrendsLimit()
public void setTrends(File trendsFile, int trendsLimit)
trendsFile
- file where information about previous builds is storedtrendsLimit
- number of builds that should be presented (older builds are skipped)public String getBuildNumber()
public void setBuildNumber(String buildNumber)
setRunWithJenkins(boolean)
executed on Jenkins}, this should be
integer value so the number of previous build can be calculated properly.buildNumber
- number of the buildpublic String getProjectName()
public File getEmbeddingDirectory()
public Collection<Pattern> getTagsToExcludeFromChart()
public void setTagsToExcludeFromChart(String... patterns)
patterns
- Regex patterns to match against tagsValidationException
- when any of the given strings is not a valid regex pattern.public void addClassifications(String name, String value)
name
- name of the propertyvalue
- value of the propertypublic List<Map.Entry<String,String>> getClassifications()
public void setSortingMethod(SortingMethod sortingMethod)
sortingMethod
- how the items should be sortedpublic SortingMethod getSortingMethod()
Copyright © 2017. All rights reserved.