Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake test misbehaves when using relative path starting with ./ #334

Open
amomchilov opened this issue Jan 23, 2020 · 1 comment
Open

rake test misbehaves when using relative path starting with ./ #334

amomchilov opened this issue Jan 23, 2020 · 1 comment

Comments

@amomchilov
Copy link

amomchilov commented Jan 23, 2020

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

@gemmaro
Copy link
Contributor

gemmaro commented Dec 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants