| Class | CI::Reporter::OutputCapture |
| In: |
lib/ci/reporter/test_suite.rb
|
| Parent: | DelegateClass(IO) |
Emulates/delegates IO to $stdout or $stderr in order to capture output to report in the XML file.
Start capturing IO, using the given block to assign self to the proper IO global.
# File lib/ci/reporter/test_suite.rb, line 13
13: def initialize(io, &assign)
14: super
15: @delegate_io = io
16: @captured_io = StringIO.new
17: @assign_block = assign
18: @assign_block.call self
19: end