Sha256: 9bc19f11b12df28e2b02619f19d5fa8839cbc2ddd5bfcd90a8029ed843b96356

Contents?: true

Size: 469 Bytes

Versions: 6

Compression:

Stored size: 469 Bytes

Contents

require 'knapsack'

namespace :knapsack do
  task :cucumber, [:cucumber_args] do |t, args|
    allocator = Knapsack::AllocatorBuilder.new(Knapsack::Adapters::CucumberAdapter).allocator

    puts
    puts 'Report features:'
    puts allocator.report_node_tests
    puts
    puts 'Leftover features:'
    puts allocator.leftover_node_tests
    puts

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

    exec(cmd)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
knapsack-1.1.0 lib/tasks/knapsack_cucumber.rake
knapsack-1.0.4 lib/tasks/knapsack_cucumber.rake
knapsack-1.0.3 lib/tasks/knapsack_cucumber.rake
knapsack-1.0.2 lib/tasks/knapsack_cucumber.rake
knapsack-1.0.1 lib/tasks/knapsack_cucumber.rake
knapsack-1.0.0 lib/tasks/knapsack_cucumber.rake