class Roger::Test::Cli

The Test CLI Thor command

Attributes

stack_index[RW]

Public Class Methods

exit_on_failure?() click to toggle source
# File lib/roger/test.rb, line 11
def self.exit_on_failure?
  true
end

Public Instance Methods

test() click to toggle source
# File lib/roger/test.rb, line 22
def test
  ok = Roger::Cli::Base.project.test.run_test!(self.class.stack_index)
  raise(Thor::Error, "The test failed") unless ok
end