minitest-ci icon indicating copy to clipboard operation
minitest-ci copied to clipboard

doesn't apply to system tests

Open maysam opened this issue 5 years ago • 1 comments

bundle exec rails test:system --ci-report --ci-dir=~/test-results

invalid option: --ci-report

maysam avatar Feb 17 '20 15:02 maysam

I spent some time (too long...) investigating this yesterday. bin/rails test doesn't hit rake, it's intercepted by Rails' command runner which has a permissive option parser. bin/rails test:system falls back to rake which doesn't allow you to pass non-rake arguments to its option parser. You need to pass TESTOPTS="--ci-dir=tmp/reports" as an environment variable instead as described in the Readme.

thomas-mcdonald avatar Oct 06 '20 09:10 thomas-mcdonald