Skip to content

Commit

Permalink
Create knapsack_pro_queue_rspec_split_by_test_examples_above_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturT committed Oct 31, 2024
1 parent c0862ed commit 6f8ba57
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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]"

0 comments on commit 6f8ba57

Please sign in to comment.