Class: Busser::RunnerPlugin::Shunit2

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

Overview

A Busser runner plugin for Shunit2.

Author:

Instance Method Summary collapse

Instance Method Details

#testObject



56
57
58
59
60
61
62
63
# File 'lib/busser/runner_plugin/shunit2.rb', line 56

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