diff --git a/bin/knapsack_pro_queue_rspec_split_by_test_examples_above_threshold b/bin/knapsack_pro_queue_rspec_split_by_test_examples_above_threshold new file mode 100755 index 0000000..67c8d8c --- /dev/null +++ b/bin/knapsack_pro_queue_rspec_split_by_test_examples_above_threshold @@ -0,0 +1,21 @@ +#!/bin/bash + +#export KNAPSACK_PRO_LOG_LEVEL=warn + +# uncomment to run all tests split by examples +#export KNAPSACK_PRO_SLOW_TEST_FILE_PATTERN="spec/**{,/*/**}/*_spec.rb" + +export EXTRA_TEST_FILES_DELAY=10 # seconds +CI_BUILD_ID=$(openssl rand -base64 32) + +KNAPSACK_PRO_ENDPOINT=http://api.knapsackpro.test:3000 \ + KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC=a28ce51204d7c7dbd25c3352fea222cf \ + KNAPSACK_PRO_REPOSITORY_ADAPTER=git \ + KNAPSACK_PRO_PROJECT_DIR=. \ + KNAPSACK_PRO_CI_NODE_TOTAL=${2:-2} \ + KNAPSACK_PRO_CI_NODE_INDEX=${1:-0} \ + KNAPSACK_PRO_CI_NODE_BUILD_ID=${3:-$CI_BUILD_ID} \ + KNAPSACK_PRO_LOG_LEVEL=debug \ + KNAPSACK_PRO_RSPEC_SPLIT_BY_TEST_EXAMPLES=true \ + KNAPSACK_PRO_SLOW_TEST_FILE_THRESHOLD=1 \ + bundle exec rake "knapsack_pro:queue:rspec[--format d]"