Sha256: 67d078491c5f4e637a8010f30b2b101f05092ab5f7523db1974f41462f108a1b

Contents?: true

Size: 706 Bytes

Versions: 20

Compression:

Stored size: 706 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} --features_path #{allocator.test_dir} -- #{allocator.stringify_node_tests}]

        system(cmd)
        exit($?.exitstatus) unless $?.exitstatus == 0
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
knapsack-4.0.0 lib/knapsack/runners/spinach_runner.rb
knapsack-3.1.0 lib/knapsack/runners/spinach_runner.rb
knapsack-3.0.0 lib/knapsack/runners/spinach_runner.rb
knapsack-2.0.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.22.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.21.1 lib/knapsack/runners/spinach_runner.rb
knapsack-1.21.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.20.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.19.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.18.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.17.2 lib/knapsack/runners/spinach_runner.rb
knapsack-1.17.1 lib/knapsack/runners/spinach_runner.rb
knapsack-1.17.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.16.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.15.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.14.1 lib/knapsack/runners/spinach_runner.rb
knapsack-1.14.0 lib/knapsack/runners/spinach_runner.rb
knapsack-1.13.3 lib/knapsack/runners/spinach_runner.rb
knapsack-1.13.2 lib/knapsack/runners/spinach_runner.rb
knapsack-1.13.1 lib/knapsack/runners/spinach_runner.rb