Class JUnitJenkins
- java.lang.Object
-
- org.jenkinsci.plugins.benchmark.parsers.MapperBase
-
- org.jenkinsci.plugins.benchmark.parsers.JUnitJenkins
-
public class JUnitJenkins extends MapperBase
Parse the Jenkins Unit Test report- Since:
- 6/20/2017.
- Author:
- Daniel Mercier
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.benchmark.parsers.MapperBase
builds, decimalSeparator, detected, files, groups, hasHistoryThreshold, hasNumericResult, parameters, results, rootGroup, truncateStrings
-
-
Constructor Summary
Constructors Constructor Description JUnitJenkins(Integer build, boolean truncateStrings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
importFromFile(Integer build, File filename)
Process the Jenkins jUnit fileboolean
importFromFile(Integer build, String inputFile)
static void
RecurseNames(boolean odd, int pos, String shortName, List<FilePathGroup> names)
Given a list of full file paths, extra for each the relative path Recursive function.-
Methods inherited from class org.jenkinsci.plugins.benchmark.parsers.MapperBase
addAllThresholds, checkResult, checkThresholds, checkThresholdType, exportCondensedToFile, exportToFile, getBuild, getBuilds, getCSVCondensedTableBody, getCSVCondensedTableHeader, getCSVTableBody, getCSVTableHeader, getCSVTableStateBody, getDecimalSeparator, getDetected, getFiles, getGroups, getHTMLCondensedTable, getHTMLTable, getNumberOfFiles, getNumberOfGroups, getNumberOfParameters, getNumberOfResults, getParameters, getResults, getRootGroup, importCondensedFromFile, importCondensedFromFile, importFromFile, importFromFile, logKeyData, mergeWith, requiresHistory, setBuild
-
-
-
-
Constructor Detail
-
JUnitJenkins
public JUnitJenkins(Integer build, boolean truncateStrings) throws IOException, ValidationException
- Throws:
IOException
ValidationException
-
-
Method Detail
-
importFromFile
public boolean importFromFile(Integer build, String inputFile) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
importFromFile
public void importFromFile(Integer build, File filename) throws IOException, InterruptedException
Process the Jenkins jUnit file- Parameters:
build
- Build numberfilename
- File name- Throws:
IOException
- I/O exceptionInterruptedException
- Interrupted exception
-
RecurseNames
public static void RecurseNames(boolean odd, int pos, String shortName, List<FilePathGroup> names)
Given a list of full file paths, extra for each the relative path Recursive function.- Parameters:
odd
- Whether this sectionpos
- Current position being processedshortName
- Identified shot namenames
- List of file paths
-
-