Class: Onceover::CLI::Run::Acceptance

Inherits:
Object
  • Object
show all
Defined in:
lib/onceover/cli/run.rb

Class Method Summary collapse

Class Method Details

.commandObject



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/onceover/cli/run.rb', line 59

def self.command
  @command ||= Cri::Command.define do
    name 'acceptance'
    usage 'acceptance'
    summary 'Runs acceptance tests'

    run do |opts, args, cmd|
      warn "[DEPRECATION] Acceptance testing is deprecated due to the removal of Beaker dependencies"
      warn "[DEPRECATION] Appeptance testing will be replaced by a more pluggable framework in the future, if you have ideas as to how this should be done please submit a ticket."
      repo = Onceover::Controlrepo.new(opts)
      runner = Onceover::Runner.new(repo,Onceover::TestConfig.new(repo.onceover_yaml,opts), :acceptance)
      runner.prepare!
      runner.run_acceptance!
    end
  end
end