Module: Inferno::DSL::Results
- Defined in:
- lib/inferno/dsl/results.rb
Overview
This module contains methods to set test results.
Instance Method Summary collapse
-
#omit(message = '') ⇒ Object
Halt execution of the current test and mark it as omitted.
-
#omit_if(test, message = '') ⇒ Object
Halt execution of the current test and mark it as omitted if a condition is true.
-
#pass(message = '') ⇒ Object
Halt execution of the current test and mark it as passed.
-
#pass_if(test, message = '') ⇒ Object
Halt execution of the current test and mark it as passed if a condition is true.
-
#skip(message = '') ⇒ Object
Halt execution of the current test and mark it as skipped.
-
#skip_if(test, message = '') ⇒ Object
Halt execution of the current test and mark it as skipped if a condition is true.
-
#wait(identifier:, message: '', timeout: 300) ⇒ Object
Halt execution of the current test and wait for execution to resume.
Instance Method Details
#omit(message = '') ⇒ Object
Halt execution of the current test and mark it as omitted.
40 41 42 |
# File 'lib/inferno/dsl/results.rb', line 40 def omit( = '') raise Exceptions::OmitException, end |
#omit_if(test, message = '') ⇒ Object
Halt execution of the current test and mark it as omitted if a condition is true.
49 50 51 |
# File 'lib/inferno/dsl/results.rb', line 49 def omit_if(test, = '') raise Exceptions::OmitException, if test end |
#pass(message = '') ⇒ Object
Halt execution of the current test and mark it as passed.
8 9 10 |
# File 'lib/inferno/dsl/results.rb', line 8 def pass( = '') raise Exceptions::PassException, end |
#pass_if(test, message = '') ⇒ Object
Halt execution of the current test and mark it as passed if a condition is true.
17 18 19 |
# File 'lib/inferno/dsl/results.rb', line 17 def pass_if(test, = '') raise Exceptions::PassException, if test end |
#skip(message = '') ⇒ Object
Halt execution of the current test and mark it as skipped.
24 25 26 |
# File 'lib/inferno/dsl/results.rb', line 24 def skip( = '') raise Exceptions::SkipException, end |
#skip_if(test, message = '') ⇒ Object
Halt execution of the current test and mark it as skipped if a condition is true.
33 34 35 |
# File 'lib/inferno/dsl/results.rb', line 33 def skip_if(test, = '') raise Exceptions::SkipException, if test end |
#wait(identifier:, message: '', timeout: 300) ⇒ Object
Halt execution of the current test and wait for execution to resume.
78 79 80 81 82 83 |
# File 'lib/inferno/dsl/results.rb', line 78 def wait(identifier:, message: '', timeout: 300) identifier(identifier) wait_timeout(timeout) raise Exceptions::WaitException, end |