Sha256: b9913dfc966e41bd6de0ceca5e65f70ec1ed2df22a3236f98cf2f953cc43c159

Contents?: true

Size: 637 Bytes

Versions: 12

Compression:

Stored size: 637 Bytes

Contents

module Knapsack
  module Runners
    class RSpecRunner
      def self.run(args)
        allocator = Knapsack::AllocatorBuilder.new(Knapsack::Adapters::RSpecAdapter).allocator

        Knapsack.logger.info
        Knapsack.logger.info 'Report specs:'
        Knapsack.logger.info allocator.report_node_tests
        Knapsack.logger.info
        Knapsack.logger.info 'Leftover specs:'
        Knapsack.logger.info allocator.leftover_node_tests
        Knapsack.logger.info

        cmd = %Q[bundle exec rspec #{args} --default-path #{allocator.test_dir} -- #{allocator.stringify_node_tests}]

        exec(cmd)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
knapsack-4.0.0 lib/knapsack/runners/rspec_runner.rb
knapsack-3.1.0 lib/knapsack/runners/rspec_runner.rb
knapsack-3.0.0 lib/knapsack/runners/rspec_runner.rb
knapsack-2.0.0 lib/knapsack/runners/rspec_runner.rb
knapsack-1.22.0 lib/knapsack/runners/rspec_runner.rb
knapsack-1.21.1 lib/knapsack/runners/rspec_runner.rb
knapsack-1.21.0 lib/knapsack/runners/rspec_runner.rb
knapsack-1.20.0 lib/knapsack/runners/rspec_runner.rb
knapsack-1.19.0 lib/knapsack/runners/rspec_runner.rb
knapsack-1.18.0 lib/knapsack/runners/rspec_runner.rb
knapsack-1.17.2 lib/knapsack/runners/rspec_runner.rb
knapsack-1.17.1 lib/knapsack/runners/rspec_runner.rb