Sha256: 6ce2b903aeb55d4bb6b44266d7b4a99fb45a999197e44da5724416dd53b958dd
Contents?: true
Size: 592 Bytes
Versions: 19
Compression:
Stored size: 592 Bytes
Contents
module KnapsackPro module Runners class RSpecRunner < BaseRunner def self.run(args) ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN'] = KnapsackPro::Config::Env.test_suite_token_rspec runner = new(KnapsackPro::Adapters::RSpecAdapter) cmd = %Q[KNAPSACK_PRO_RECORDING_ENABLED=true KNAPSACK_PRO_TEST_SUITE_TOKEN=#{ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN']} bundle exec rspec #{args} --default-path #{runner.test_dir} -- #{runner.stringify_test_file_paths}] Kernel.system(cmd) Kernel.exit($?.exitstatus) unless $?.exitstatus.zero? end end end end
Version data entries
19 entries across 19 versions & 1 rubygems