with_reporter: Execute code in specified reporter.
Description
Execute code in specified reporter.Usage
with_reporter(reporter, code)
Arguments
reporter
test reporter to use
code
code block to execute
Details
Changes global reporter to that specified, runs code and the returns
global reporter back to previous value.