Class: Cucumber::Core::Test::Runner::RunningTestCase
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb
Defined Under Namespace
Modules: Status
Instance Method Summary collapse
- #duration(step_duration, step_result) ⇒ Object
- #exception(step_exception, step_result) ⇒ Object
- #execute(test_step, &continue) ⇒ Object
- #failed(step_result) ⇒ Object
-
#initialize ⇒ RunningTestCase
constructor
A new instance of RunningTestCase.
- #passed(step_result) ⇒ Object
- #pending(message, step_result) ⇒ Object
- #result ⇒ Object
- #skipped(step_result) ⇒ Object
- #undefined(step_result) ⇒ Object
Constructor Details
#initialize ⇒ RunningTestCase
Returns a new instance of RunningTestCase.
47 48 49 50 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 47 def initialize @timer = Timer.new.start @status = Status::Unknown.new(Result::Unknown.new) end |
Instance Method Details
#duration(step_duration, step_result) ⇒ Object
89 90 91 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 89 def duration(step_duration, step_result) self end |
#exception(step_exception, step_result) ⇒ Object
85 86 87 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 85 def exception(step_exception, step_result) self end |
#execute(test_step, &continue) ⇒ Object
52 53 54 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 52 def execute(test_step, &continue) status.execute(test_step, self, &continue) end |
#failed(step_result) ⇒ Object
60 61 62 63 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 60 def failed(step_result) @status = Status::Failing.new(step_result) self end |
#passed(step_result) ⇒ Object
65 66 67 68 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 65 def passed(step_result) @status = Status::Passing.new(step_result) self end |
#pending(message, step_result) ⇒ Object
70 71 72 73 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 70 def pending(, step_result) @status = Status::Pending.new(step_result) self end |
#result ⇒ Object
56 57 58 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 56 def result status.result(@timer.duration) end |
#skipped(step_result) ⇒ Object
75 76 77 78 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 75 def skipped(step_result) @status = Status::Skipping.new(step_result) self end |
#undefined(step_result) ⇒ Object
80 81 82 83 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/runner.rb', line 80 def undefined(step_result) failed(step_result) self end |