Class: Onceover::CLI::Run::Spec

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

Class Method Summary collapse

Class Method Details

.commandObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/onceover/cli/run.rb', line 33

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

    run do |opts, args, cmd|
      repo = Onceover::Controlrepo.new(opts)
      runner = Onceover::Runner.new(repo,Onceover::TestConfig.new(repo.onceover_yaml,opts),:spec)
      runner.prepare!
      runner.run_spec!
    end
  end
end