Method: Aspec::CLI#run
- Defined in:
- lib/aspec/cli.rb
#run ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/aspec/cli.rb', line 31 def run bits = args[0].split(":") load aspec_helper_path if File.exist?(aspec_helper_path) @lines = bits[1..-1].map(&:to_i) is_verbose = args.include?("-v") Aspec.configure do |c| c.verbose = is_verbose c.slow = args.include?("--slow") c.formatter = args.include?("--junit") ? Formatter::JUnit.new(@file) : Formatter::Terminal.new(is_verbose) end TestRunner.new(Aspec.configuration, aspec_files).run(@lines) end |