Using Knapsack Pro with spring
caution
If you are using Knapsack Pro in Queue Mode with Cucumber, read the dedicated section below.
You can use spring to load your tests faster with knapsack_pro by prepending bundle exec spring or bin/spring. For example, with rspec you would:
# Knapsack Pro in Regular Mode
bundle exec spring rake knapsack_pro:rspec
# Knapsack Pro in Queue Mode
bundle exec spring rake knapsack_pro:queue:rspec
Using Knapsack Pro in Queue Mode with spring and Cucumber
Make sure you have spring-commands-cucumber installed and execute:
export KNAPSACK_PRO_CUCUMBER_QUEUE_PREFIX=bundle exec spring
# or
export KNAPSACK_PRO_CUCUMBER_QUEUE_PREFIX=bin/spring
bundle exec rake knapsack_pro:queue:cucumber