From f228619b8e1ab56c78f4e0fb0a55e17e8b433bad Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 1 Jan 2026 16:32:33 -0800 Subject: [PATCH] Try to fix CircleCI report dir --- .circleci/config.yml | 4 ++-- test/support/circleci.rb | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 90d8cf5..a4adb37 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,9 +53,9 @@ jobs: - checkout - bundle_install: version: << parameters.version >> - - run: bundle exec rake test TESTOPTS="--ci-dir=./reports" + - run: bundle exec rake test - store_test_results: - path: ./reports + path: "$CIRCLE_TEST_REPORTS/reports" workflows: version: 2 diff --git a/test/support/circleci.rb b/test/support/circleci.rb index 320e9a6..5a36bfa 100644 --- a/test/support/circleci.rb +++ b/test/support/circleci.rb @@ -1,2 +1,6 @@ # Generate XML test reports that can be parsed by CircleCI -require 'minitest/ci' if ENV['CIRCLECI'] +if ENV["CIRCLECI"] + require 'minitest/ci' + + Minitest::Ci.report_dir = "#{ENV["CIRCLE_TEST_REPORTS"]}/reports" +end