public class JUnitXmlReporter extends JUnitReporter
JUnitReporter that produces an XML based report
in the same format as that produced by the Maven Surefire plugin.
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
JUnitReporter.TestResultsJUnitTestListener.Event| Constructor and Description |
|---|
JUnitXmlReporter()
Constructs a
JUnitXmlReporter. |
JUnitXmlReporter(File reportFolder)
Constructs a
JUnitXmlReporter. |
| Modifier and Type | Method and Description |
|---|---|
static com.oracle.bedrock.Option |
at(File folder) |
String |
getReportFileName(Class testClass) |
String |
getReportFileName(String className)
Obtain the file name to use for the test report for the
specified class name.
|
static com.oracle.bedrock.Option |
toConsole() |
void |
writeReport(PrintStream out,
JUnitReporter.TestResults test)
Write the test report for the specified
JUnitReporter.TestResults to
the specified PrintStream. |
asOption, ensureTest, getReportFolder, getTestProperties, junitCompleted, junitStarted, testAssumptionFailure, testClassFinished, testClassStarted, testError, testFailed, testIgnored, testRunFinished, testRunStarted, testStarted, testSucceededpublic JUnitXmlReporter()
JUnitXmlReporter.public JUnitXmlReporter(File reportFolder)
JUnitXmlReporter.reportFolder - the report folderpublic void writeReport(PrintStream out, JUnitReporter.TestResults test)
JUnitReporterJUnitReporter.TestResults to
the specified PrintStream.writeReport in class JUnitReporterout - the PrintStream to write the test totest - the JUnitReporter.TestResults to use to write the reportpublic String getReportFileName(String className)
JUnitReportergetReportFileName in class JUnitReporterclassName - the name of the test classpublic static com.oracle.bedrock.Option at(File folder)
public static com.oracle.bedrock.Option toConsole()
Copyright © 2017. All rights reserved.