FAQ / knapsack_pro / General questions for knapsack_pro gem

How many API keys I need?

Basically you need as many API keys as you have steps in your build.

Here is example:

  • Step 1. API_KEY_A for bundle exec rake knapsack_pro:cucumber
  • Step 2. API_KEY_B for bundle exec rake knapsack_pro:rspec
  • Step 3. API_KEY_C for KNAPSACK_PRO_TEST_FILE_PATTERN="spec/features/*_spec.rb" bundle exec rake knapsack_pro:rspec
  • Step 4. API_KEY_D for bundle exec rake knapsack_pro:rspec[--tag tagA]
  • Step 5. API_KEY_E for bundle exec rake knapsack_pro:rspec[--tag ~tagA]
  • Step 6. API_KEY_F for bundle exec rake knapsack_pro:queue:rspec

Note:

  • If you specified KNAPSACK_PRO_TEST_FILE_PATTERN then you run subset of your whole test suite hence you need separate API key because we want to track only tests for this subset.
  • If you pass --tag tagA or --tag ~tagA then you run subset of your whole test suite hence you need separate API key.
  • If you use regular or queue mode then you need separate API key for each mode.

# General questions for knapsack_pro gem
See questions outside of this category

Start using Knapsack Pro

Sign up and speed up your tests.