class Busser::RunnerPlugin::Shunit2

A Busser runner plugin for Shunit2.

@author Jeff Siegel <jdsiegel@gmail.com>

Public Instance Methods

test() click to toggle source
# File lib/busser/runner_plugin/shunit2.rb, line 55
def test
  shunit2_file = vendor_path('shunit2').join('shunit2')
  runner       = vendor_path('shunit2').join('runner')
  Dir.glob("#{suite_path('shunit2')}/*_{test,spec}.{sh,bash}").each do |file|
    banner "[shunit2] #{File.basename(file)}"
    run!("#{runner} #{file} #{shunit2_file}")
  end
end