class Onceover::CLI::Run::Acceptance

Public Class Methods

command() click to toggle source
# File lib/onceover/cli/run.rb, line 60
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