ruby / ruby/rake

rake -t not working

Open
#330 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
2.5k
Forks
650
Avg merge
6m
Merged PRs (30d)
3

Description

Rails version 4.2.7.1

bundle exec rake test test/somewhere/file.rb -t
** Invoke test (first_time)
** Execute test
** Invoke test:single (first_time)
** Execute test:single
Running via Spring preloader in process 65713

invalid option: -t

minitest options:
    -h, --help                       Display this help.
        --no-plugins                 Bypass minitest plugin auto-loading (or set $MT_NO_PLUGINS).
    -s, --seed SEED                  Sets random seed. Also via env. Eg: SEED=n rake
    -v, --verbose                    Verbose. Show progress processing files.
    -n, --name PATTERN               Filter run on /regexp/ or string.
    -e, --exclude PATTERN            Exclude /regexp/ or string from run.

Known extensions: pride
    -p, --pride                      Pride. Show your testing pride!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the command shown in the issue: bundle exec rake test test/somewhere/file.rb -t. Start by tracing how rake passes arguments to the test task, including the Spring preloader and the minitest options shown. Done means the command no longer reports “invalid option: -t” and applies the requested test filter.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.