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)
Reporter
public void end()
Reporter
public void testBlockStart(TestBlock testBlock, java.util.List<TestBlock> parents)
Reporter
testBlockStart
in interface Reporter
testBlock
- 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)
Reporter
testBlockEnd
in interface Reporter
testBlock
- 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)
Reporter
blockHookStart
in interface Reporter
hook
- 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)
Reporter
blockHookPass
in interface Reporter
hook
- 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)
Reporter
blockHookFail
in interface Reporter
hook
- 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)
Reporter
testHookStart
in interface Reporter
hook
- 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)
Reporter
testHookPass
in interface Reporter
hook
- 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)
Reporter
testHookFail
in interface Reporter
hook
- 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)
Reporter
public void testStart(Test test, java.util.List<TestBlock> parents)
Reporter
public void testEnd(Test test, java.util.List<TestBlock> parents)
Reporter
public void testPass(Test test, java.util.List<TestBlock> parents)
Reporter
public void testFail(Test test, java.util.List<TestBlock> parents, java.lang.Throwable cause)
Reporter
public void testPending(Test test, java.util.List<TestBlock> parents)
Reporter
testPending
in interface Reporter
test
- The pending test.parents
- The ancestor test blocks, starting with the root block and ending with the immediate parent.