| Constructor and Description |
|---|
CompositeReporter(java.util.List<Reporter> reporters)
Constructs a new composite reporter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
blockHookFail(Hook hook,
java.util.List<TestBlock> parents,
java.lang.Throwable cause)
Called when a before or after hook failed due to it throwing an exception.
|
void |
blockHookPass(Hook hook,
java.util.List<TestBlock> parents)
Called after a before or after hook has successfully executed without throwing an exception.
|
void |
blockHookStart(Hook hook,
java.util.List<TestBlock> parents)
Called before a before or after hook is run.
|
void |
end()
Called after all tests have been run.
|
void |
hookFail(Hook hook,
java.util.List<TestBlock> parents,
java.lang.Throwable cause)
Called when a hook failed due to it throwing an exception.
|
void |
start(TestBlock rootBlock)
Called before any tests are run.
|
void |
testBlockEnd(TestBlock testBlock,
java.util.List<TestBlock> parents)
Called after all tests in a test block have completed.
|
void |
testBlockStart(TestBlock testBlock,
java.util.List<TestBlock> parents)
Called before any tests are run in a test block.
|
void |
testEnd(Test test,
java.util.List<TestBlock> parents)
Called after a test is run.
|
void |
testFail(Test test,
java.util.List<TestBlock> parents,
java.lang.Throwable cause)
Called after a test has failed due to it throwing an exception.
|
void |
testHookFail(Hook hook,
java.util.List<TestBlock> hookParents,
Test test,
java.util.List<TestBlock> testParents,
java.lang.Throwable cause)
Called when a beforeEach or afterEach hook failed due to it throwing an exception.
|
void |
testHookPass(Hook hook,
java.util.List<TestBlock> hookParents,
Test test,
java.util.List<TestBlock> testParents)
Called after a beforeEach or afterEach hook has successfully executed without throwing an exception.
|
void |
testHookStart(Hook hook,
java.util.List<TestBlock> hookParents,
Test test,
java.util.List<TestBlock> testParents)
Called before a beforeEach or afterEach hook is run.
|
void |
testPass(Test test,
java.util.List<TestBlock> parents)
Called after a test has successfully executed without throwing an exception.
|
void |
testPending(Test test,
java.util.List<TestBlock> parents)
Called when a test cannot be run as it has not yet been implemented.
|
void |
testSkip(Test test,
java.util.List<TestBlock> parents)
Called when a test has been skipped.
|
void |
testStart(Test test,
java.util.List<TestBlock> parents)
Called before a test is run.
|
public CompositeReporter(java.util.List<Reporter> reporters)
reporters - The reporters to delegate calls to.public void start(TestBlock rootBlock)
Reporterpublic void end()
Reporterpublic void testBlockStart(TestBlock testBlock, java.util.List<TestBlock> parents)
ReportertestBlockStart in interface ReportertestBlock - The test block.parents - The ancestor test blocks, starting with the root block and ending with the immediate parent.public void testBlockEnd(TestBlock testBlock, java.util.List<TestBlock> parents)
ReportertestBlockEnd in interface ReportertestBlock - The test block.parents - The ancestor test blocks, starting with the root block and ending with the immediate parent.public void blockHookStart(Hook hook, java.util.List<TestBlock> parents)
ReporterblockHookStart in interface Reporterhook - The hook that threw an exception.parents - The parent test blocks of the hook, starting with the root block and ending with the immediate
parent.public void blockHookPass(Hook hook, java.util.List<TestBlock> parents)
ReporterblockHookPass in interface Reporterhook - The hook that threw an exception.parents - The parent test blocks of the hook, starting with the root block and ending with the immediate
parent.public void blockHookFail(Hook hook, java.util.List<TestBlock> parents, java.lang.Throwable cause)
ReporterblockHookFail in interface Reporterhook - The hook that threw an exception.parents - The parent test blocks of the hook, starting with the root block and ending with the immediate
parent.cause - The throwable that the hook threw.public void testHookStart(Hook hook, java.util.List<TestBlock> hookParents, Test test, java.util.List<TestBlock> testParents)
ReportertestHookStart in interface Reporterhook - The hook that threw an exception.hookParents - The parent test blocks of the hook, starting with the root block and ending with the immediate
parent.test - The test that was associated with the beforeEach/afterEach.testParents - The parent test blocks of the test, starting with the root block and ending with the immediate
parent.public void testHookPass(Hook hook, java.util.List<TestBlock> hookParents, Test test, java.util.List<TestBlock> testParents)
ReportertestHookPass in interface Reporterhook - The hook that threw an exception.hookParents - The parent test blocks of the hook, starting with the root block and ending with the immediate
parent.test - The test that was associated with the beforeEach/afterEach.testParents - The parent test blocks of the test, starting with the root block and ending with the immediate
parent.public void testHookFail(Hook hook, java.util.List<TestBlock> hookParents, Test test, java.util.List<TestBlock> testParents, java.lang.Throwable cause)
ReportertestHookFail in interface Reporterhook - The hook that threw an exception.hookParents - The parent test blocks of the hook, starting with the root block and ending with the immediate
parent.test - The test that was associated with the beforeEach/afterEach.testParents - The parent test blocks of the test, starting with the root block and ending with the immediate
parent.cause - The throwable that the hook threw.public void hookFail(Hook hook, java.util.List<TestBlock> parents, java.lang.Throwable cause)
Reporterpublic void testStart(Test test, java.util.List<TestBlock> parents)
Reporterpublic void testEnd(Test test, java.util.List<TestBlock> parents)
Reporterpublic void testPass(Test test, java.util.List<TestBlock> parents)
Reporterpublic void testFail(Test test, java.util.List<TestBlock> parents, java.lang.Throwable cause)
Reporterpublic void testPending(Test test, java.util.List<TestBlock> parents)
ReportertestPending in interface Reportertest - The pending test.parents - The ancestor test blocks, starting with the root block and ending with the immediate parent.