Sha256: 9a7364919717948728727fe6787cfaaf4d3e8bd8ba3d9f8c357349b96a1cd60d
Contents?: true
Size: 716 Bytes
Versions: 22
Compression:
Stored size: 716 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/knapsack_pro' runner = ARGV[0] arguments = ARGV[1] MAP = { 'rspec' => KnapsackPro::Runners::RSpecRunner, 'queue:rspec' => KnapsackPro::Runners::Queue::RSpecRunner, 'cucumber' => KnapsackPro::Runners::CucumberRunner, 'minitest' => KnapsackPro::Runners::MinitestRunner, 'queue:minitest' => KnapsackPro::Runners::Queue::MinitestRunner, 'test_unit' => KnapsackPro::Runners::TestUnitRunner, 'spinach' => KnapsackPro::Runners::SpinachRunner, } runner_class = MAP[runner] if runner_class runner_class.run(arguments) else raise 'Undefined runner. Please provide runner name and optional arguments, for instance: knapsack_pro rspec "--color --profile"' end
Version data entries
22 entries across 22 versions & 1 rubygems