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

Version Path
knapsack_pro-0.13.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.12.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.11.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.10.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.9.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.8.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.7.2 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.7.1 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.7.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.6.1 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.6.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.5.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.4.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.3.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.2.1 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.2.0 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.1.2 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.1.1 lib/knapsack_pro/runners/rspec_runner.rb
knapsack_pro-0.1.0 lib/knapsack_pro/runners/rspec_runner.rb