Class: Roger::Cli::Test

Inherits:
Thor
  • Object
show all
Defined in:
lib/roger/cli/test.rb

Overview

The test command and all it’s children

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/roger/cli/test.rb', line 4

def self.exit_on_failure?
  true
end

Instance Method Details

#allObject

Raises:

  • (Thor::Error)


11
12
13
# File 'lib/roger/cli/test.rb', line 11

def all
  raise(Thor::Error, "Test failed") unless Cli::Base.project.test.run!
end