Class: Busser::RunnerPlugin::Nose2

Inherits:
Base
  • Object
show all
Defined in:
lib/busser/runner_plugin/nose2.rb

Overview

A Busser runner plugin for Nose2.

Author:

Instance Method Summary collapse

Instance Method Details

#testObject



30
31
32
33
34
35
36
# File 'lib/busser/runner_plugin/nose2.rb', line 30

def test
  if File.file?("#{suite_path('nose2')}/requirements.txt")
	puts "Installing test requirements."
	run!("pip install -r #suite_path('nose2')/requirements.txt")
  end
  run!("nose2 --start-dir #{suite_path('nose2').to_s}/tests")
end