FAQ / knapsack_pro / Queue Mode problems & solutions for knapsack_pro gem

Why all test files have 0.1s time execution for my CI build in user dashboard?

If you go to user dashboard and open Build metrics for your API token and you open CI build for your last git commit you should see there info about collected time execution data from all CI nodes. If you see all test files have 0.1s time execution then please ensure:

  • you should not clean up tmp directory in your tests (for instance in RSpec hooks like before or after) so knapsack_pro can publish measured time execution data to Knapsack Pro API server. knapsack_pro Queue Mode saves temporary files with collected time execution data in your_rails_project/tmp/knapsack_pro/queue/.
  • please ensure you have in your rails_helper.rb or spec_helper.rb line that allows to measure tests:

require 'knapsack_pro'

# CUSTOM_CONFIG_GOES_HERE

KnapsackPro::Adapters::RSpecAdapter.bind

The 0.1s is a default time execution used when test file is an empty file or its content are all pending tests.

Queue Mode problems & solutions for knapsack_pro gem
See questions outside of this category

Start using Knapsack Pro

Sign up and speed up your tests.