encoding: utf-8
VERSION | = | "0.4.2" |
context | -> | describe |
context | -> | story |
Register a new Report. This will make your report available to Protest, allowing you to run your tests through this report. For example
module Protest class Reports::MyAwesomeReport < Report end add_report :awesomesauce, MyAwesomeReport end
See Protest.report_with to see how to select which report will be used.
Register a test case to be run with Protest. This is done automatically whenever you subclass Protest::TestCase, so you probably shouldn‘t pay much attention to this method.
Set what object will filter the backtrace. It must respond to filter_backtrace, taking a backtrace array and a prefix path.
Load a report by name, initializing it with the extra arguments provided. If the given name doesn‘t match a report registered via Protest.add_report then the method will raise IndexError.
Select the name of the Report to use when running tests. See Protest.add_report for more information on registering a report.
Any extra arguments will be forwarded to the report‘s initialize method.
The default report is Protest::Reports::Progress