Class: Roger::Test::Cli
- Inherits:
-
Thor
- Object
- Thor
- Roger::Test::Cli
- Defined in:
- lib/roger/test.rb
Overview
The Test CLI Thor command
Class Attribute Summary collapse
-
.stack_index ⇒ Object
Returns the value of attribute stack_index.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.stack_index ⇒ Object
Returns the value of attribute stack_index.
18 19 20 |
# File 'lib/roger/test.rb', line 18 def stack_index @stack_index end |
Class Method Details
.exit_on_failure? ⇒ Boolean
11 12 13 |
# File 'lib/roger/test.rb', line 11 def self.exit_on_failure? true end |
Instance Method Details
#test ⇒ Object
22 23 24 25 |
# File 'lib/roger/test.rb', line 22 def test ok = Roger::Cli::Base.project.test.run_test!(self.class.stack_index) fail(Thor::Error, "The test failed") unless ok end |