I’m trying to get a project set up on CircleCI for the first time. Rails 3.2.22 on Ruby 2.2.4. Tests pass locally and in our existing CI system (i.e., not CircleCI).
I ran into this issue earlier and added Test::Unit::AutoRunner.need_auto_run = false if defined?(Test::Unit::AutoRunner)
to an initializer. This got me past some setup rake tasks. But when Test::Unit tasks try to run, I get the same invalid option: --trace
error again.
** Invoke circleci:test_unit_0 (first_time)
** Execute circleci:test_unit_0
Coverage report generated for Functional Tests to /home/ubuntu/theapp/coverage. 7283 / 22267 LOC (32.71%) covered.
invalid option: --trace
Test::Unit automatic runner.
Usage: /home/ubuntu/.rvm/rubies/ruby-2.2.4/bin/rake [options] [-- untouched arguments]
-r, --runner=RUNNER Use the given RUNNER.
(c[onsole], e[macs], x[ml])
--collector=COLLECTOR Use the given COLLECTOR.
[...snip...]
Deprecated options:
--console Console runner (use --runner). ((bundle exec "rake circleci:test_unit_0 --trace")) returned exit code 1