Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
3v0k4 committed Jan 8, 2024
1 parent 5536975 commit 4e063bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ jobs:
- run:
command: |
export KNAPSACK_PRO_RSPEC_DISABLED=true
export KNAPSACK_PRO_TEST_SUITE_TOKEN_MINITEST=$KNAPSACK_PRO_QUEUE_TEST_SUITE_TOKEN_MINITEST
export KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE=/tmp/tests_to_run.txt
# Retrieve the tests to run (all or just the failed ones), and let Knapsack Pro split them optimally.
circleci tests glob "test/**/*_test.rb" | circleci tests run --index 0 --total 1 --command ">$KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE xargs -n1 echo" --verbose
bundle exec rake "knapsack_pro:queue:minitest[--verbose --ci-report --no-ci-clean]"
- store_test_results:
Expand Down
2 changes: 1 addition & 1 deletion test/models/article_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ArticleTest < ActiveSupport::TestCase
end

test "randomly failing" do
assert [false, false, false, true].sample
assert [false, true].sample
end
end

0 comments on commit 4e063bf

Please sign in to comment.