Sha256: 5ecfa5163a0f091534a3f11508696005e39a6ad3fa16eece876d5ae094259814

Contents?: true

Size: 320 Bytes

Versions: 7

Compression:

Stored size: 320 Bytes

Contents

module Roger
  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
      unless Cli::Base.project.test.run!
        raise Thor::Error, "Test failed"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roger-1.1.3 lib/roger/cli/test.rb
roger-1.1.2 lib/roger/cli/test.rb
roger-1.1.1 lib/roger/cli/test.rb
roger-1.1.0 lib/roger/cli/test.rb
roger-1.0.1 lib/roger/cli/test.rb
roger-1.0.0 lib/roger/cli/test.rb
roger-0.13.0 lib/roger/cli/test.rb