ruby / rake

A make-like build utility for Ruby.

Home Page:https://ruby.github.io/rake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

amomchilov opened this issue · comments

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

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.