lib/busser/runner_plugin/nose2.rb in busser-nose2-0.1.4 vs lib/busser/runner_plugin/nose2.rb in busser-nose2-0.1.5

- old
+ new

@@ -23,15 +23,15 @@ # @author Omer Katz <omer.drow@gmail.com> # class Busser::RunnerPlugin::Nose2 < Busser::RunnerPlugin::Base postinstall do run!("pip install nose2") - if File.file?("#{suite_path('nose2')}/requirements.txt") - puts "Installing test requirements." - run!("pip install #suite_path('nose2')/requirements.txt") - end end 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 end