rake icon indicating copy to clipboard operation
rake copied to clipboard

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

Open amomchilov opened this issue 5 years ago • 1 comments
trafficstars

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

amomchilov avatar Jan 23 '20 15:01 amomchilov

Specifying test files with Rake::TestTask is like rake test TEST=test/controllers/some_test.rb, as in lib/rake/testtask.rb. In my setup, it works fine in both cases. Maybe there is another library (Rails?) unrelated to Rake that defines some behavior.

gemmaro avatar Dec 22 '23 01:12 gemmaro