Sha256: 00a3c84d116b56835199e13e6eb1ba450f11b8cdca49c7576a46beb4b4e7beb2
Contents?: true
Size: 972 Bytes
Versions: 1
Compression:
Stored size: 972 Bytes
Contents
#!/usr/bin/env ruby require 'rspec-search-and-destroy' require 'rspec-search-and-destroy/binary_chop_example_selector' require 'rspec-search-and-destroy/rspec_driver' require 'rspec-search-and-destroy/bisector' require 'rspec-search-and-destroy/io_output' include RSpecSearchAndDestroy require 'optparse' driver_options = {} option_parser = OptionParser.new do |opts| opts.banner = <<BANNER Find RSpec test order bugs Usage: #{opts.program_name} [options] BANNER opts.on("--rspec-command COMMAND", "Command to run instead of `rspec`") do |cmd| driver_options[:command] = cmd end end option_parser.parse! output = IOOutput.new selector = BinaryChopExampleSelector.new driver = RSpecDriver.new(driver_options) driver.initial_run results = driver.load_run_results raise "no failures found" unless results.failed? bisector = Bisector.new(output, selector, driver) bisector.bisect(results.causal_examples, results.failed_example) driver.cleanup
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-search-and-destroy-0.0.4 | bin/rspec-sad |