Sha256: d83dfcd658fa9bec86565ec61a1612131e46d1aeee2432c10812f843564a0651

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

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

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

        cmd = %Q[bundle exec spinach #{args} -- #{allocator.stringify_node_tests}]

        system(cmd)
        exit($?.exitstatus) unless $?.exitstatus.zero?
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knapsack-1.12.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.11.1 lib/knapsack/runners/spinach_runner.rb
knapsack-1.11.0 lib/knapsack/runners/spinach_runner.rb