lib/busser/runner_plugin/nose2.rb in busser-nose2-0.1.2 vs lib/busser/runner_plugin/nose2.rb in busser-nose2-0.1.3

- old
+ new

@@ -23,9 +23,13 @@ # @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 run!("nose2 --start-dir #{suite_path('nose2').to_s}/tests") end