Sha256: be3f62d7641ed7f39482f8765083a913d5e4e41042679eccac491e7dbc951ba7

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 Bytes

Contents

module Roger
  # The test command and all it's children
  class Cli::Test < Thor
    def self.exit_on_failure?
      true
    end

    default_task :all

    desc "all", "Run all tests defined in Rogerfile. (this is the default action)"
    def all
      raise(Thor::Error, "Test failed") unless Cli::Base.project.test.run!
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
roger-1.10.0 lib/roger/cli/test.rb
roger-1.9.1 lib/roger/cli/test.rb
roger-1.9.0 lib/roger/cli/test.rb
roger-1.8.0 lib/roger/cli/test.rb
roger-1.7.2 lib/roger/cli/test.rb
roger-1.7.1 lib/roger/cli/test.rb