Sha256: c8e34b50fefb5cf0e8a08079ea98a3cdae244e8ab0f87b191db6941be72f28a9

Contents?: true

Size: 447 Bytes

Versions: 7

Compression:

Stored size: 447 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 Mockupfile. (this is the default action)"
    def all
      # If we use fail here the test breaks; no idea why
      # rubocop:disable Style/SignalException:
      raise(Thor::Error, "Test failed") unless Cli::Base.project.test.run!
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roger-1.3.5 lib/roger/cli/test.rb
roger-1.3.4 lib/roger/cli/test.rb
roger-1.3.3 lib/roger/cli/test.rb
roger-1.3.2 lib/roger/cli/test.rb
roger-1.3.0 lib/roger/cli/test.rb
roger-1.2.2 lib/roger/cli/test.rb
roger-1.2.1 lib/roger/cli/test.rb