Package au.com.rayh
Class XCodeBuildOutputParser
java.lang.Object
au.com.rayh.XCodeBuildOutputParser
- Direct Known Subclasses:
JenkinsXCodeBuildOutputParser
Parse Xcode output and transform into JUnit-style xml test result files.
This utility class creates and manages a FilterOutputStream to parse the Xcode output to capture the
results of ocunit tests.
- Author:
- John Bito <jwbito@gmail.com>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OutputStreamprotected booleanprotected TestCaseprotected TestSuiteprotected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXCodeBuildOutputParser(File workspace, OutputStream log) Initalize the FilterOutputStream and prepare to generate the JUnit result files -
Method Summary
Modifier and TypeMethodDescriptionintprotected voidhandleLine(String line) protected OutputStream
-
Field Details
-
captureOutputStream
-
exitCode
protected int exitCode -
testSuitesHash
-
currentTestSuite
-
currentTestCase
-
consoleLog
protected boolean consoleLog
-
-
Constructor Details
-
XCodeBuildOutputParser
protected XCodeBuildOutputParser() -
XCodeBuildOutputParser
Initalize the FilterOutputStream and prepare to generate the JUnit result files- Parameters:
workspace- directory that will receive the result fileslog- the Xcode output stream that should be parsed
-
-
Method Details
-
outputForSuite
- Throws:
IOExceptionInterruptedException
-
handleLine
protected void handleLine(String line) throws ParseException, IOException, InterruptedException, javax.xml.bind.JAXBException - Throws:
ParseExceptionIOExceptionInterruptedExceptionjavax.xml.bind.JAXBException
-
getOutputStream
-
getExitCode
public int getExitCode()
-