4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/knapsack/runners/spinach_runner.rb', line 4
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
|