Class: Pbt::Reporter::RunDetailsReporter
- Inherits:
-
Object
- Object
- Pbt::Reporter::RunDetailsReporter
- Defined in:
- lib/pbt/reporter/run_details_reporter.rb
Overview
Reporter for the run details of a property test.
Instance Method Summary collapse
-
#initialize(run_details) ⇒ RunDetailsReporter
constructor
A new instance of RunDetailsReporter.
-
#report_run_details ⇒ Object
Report the run details of a property test.
Constructor Details
#initialize(run_details) ⇒ RunDetailsReporter
Returns a new instance of RunDetailsReporter.
8 9 10 |
# File 'lib/pbt/reporter/run_details_reporter.rb', line 8 def initialize(run_details) @run_details = run_details end |
Instance Method Details
#report_run_details ⇒ Object
Report the run details of a property test. If the property test failed, raise a PropertyFailure.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/pbt/reporter/run_details_reporter.rb', line 16 def report_run_details if @run_details.failed = [] << << error_backtrace << if @run_details.verbose verbose_details end raise PropertyFailure, .join("\n") if .size > 0 end end |