Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

modify rake task to allow specification of a directory or file to specifially run, instead of the whole library #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tests with:
```
$ bundle
$ bundle exec rake
$ bundle exec rake test <relative-path> # to run a subset of tests
```

Most tests should pass. (If a few tests fail, that's okay. Some of the tests are
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "smells"
t.libs << "support/ruby"
tests = ARGV[1] || "smells/**/*.rb"
t.test_files = FileList[
"support/ruby/helper.rb",
"smells/**/*.rb"
tests
]
end

Expand Down