ruby / ruby/rake

`rake test` misbehaves when using relative path starting with `./`

Open
#334 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

In Rake v13.0.1, e.g.:

rake test test/controllers/some_test.rb

runs only the tests in some_test.rb

rake test ./test/controllers/some_test.rb

Seems to completely ignore the arg, and runs all tests. Expected to be equivalent to test/controllers/some_test.rb

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 two rake commands from the issue and compare which test paths are selected. Trace how the command-line argument is parsed when it starts with ./; done means rake test ./test/controllers/some_test.rb runs the same tests as the equivalent path without the prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.