Class XUnitReportProcessorService
java.lang.Object
org.jenkinsci.plugins.xunit.service.XUnitReportProcessorService
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkIfFindsFilesNewFiles
(XUnitToolInfo xUnitToolInfo, String[] resultFiles, File workspace) Checks if all the finds files are new file.String[]
findReports
(File parentPath, XUnitToolInfo options) Gets all reports from the given parent path and the pattern.getCurrentReport
(File root, String name) Gets a file from a root file and a nameboolean
isEmptyPattern
(String pattern) Tests if the pattern is empty.boolean
isStopProcessingIfError
(XUnitToolInfo xUnitToolInfo) Check if we stop the processing for an error
-
Constructor Details
-
XUnitReportProcessorService
-
-
Method Details
-
isEmptyPattern
Tests if the pattern is empty.- Parameters:
pattern
- the given pattern of the current test tool- Returns:
- true if empty or blank, false otherwise
-
findReports
Gets all reports from the given parent path and the pattern.- Parameters:
parentPath
- folder from where start searchoptions
- all XUnit options also advanced- Returns:
- an array of strings
- Throws:
NoTestFoundException
- when not report files were founded
-
checkIfFindsFilesNewFiles
public void checkIfFindsFilesNewFiles(XUnitToolInfo xUnitToolInfo, String[] resultFiles, File workspace) throws NoNewTestReportException Checks if all the finds files are new file.- Parameters:
xUnitToolInfo
- the wrapped objectresultFiles
- the file listworkspace
- the root location of the file list- Throws:
NoNewTestReportException
- when the report file is not updated during this build is setup to fail
-
getCurrentReport
Gets a file from a root file and a name- Parameters:
root
- the root pathname
- the filename- Returns:
- the current file
-
isStopProcessingIfError
Check if we stop the processing for an error- Parameters:
xUnitToolInfo
- the wrapped object- Returns:
- true if the xUnit must stop at the first error
-