`rake test` misbehaves when using relative path starting with `./`
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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