Skip to content
Merged
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
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ explanation if needed, including *when* and *why* the method could be useful.

The test suite uses four tools:

* **RubyTest** provides the test runner interface; `rubytest-cli` supplies the
`ruby-test` command used by the Rake tasks.
* **RubyTest** provides the test runner interface and the `rubytest` command
used by the Rake tasks.
* **Lemon** defines the `test_case`, `method`, and `test` structure of the unit
tests.
* **AE** provides assertions such as `.assert` and `expect`, used in both the
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source "https://rubygems.org"
group :test do
gem 'lemon'
gem 'qed'
gem 'rubytest-cli'
gem 'rubytest', '>= 0.9'
gem 'rake'
gem 'simplecov'
gem 'ostruct' # no longer a default gem as of Ruby 3.5; needed by facets/ostruct tests
Expand Down
4 changes: 2 additions & 2 deletions Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ module ::Guard

def run_all
puts 'Running all tests'
puts `ruby-test test`
puts `rubytest test`
end

def run_on_modifications(paths)
puts "Running test for #{paths.join(' ')}"
puts `ruby-test #{paths.join(' ')}`
puts `rubytest #{paths.join(' ')}`
end
end
end
Expand Down
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ task "default" => "test"

task "test" => "tmp" do
if tests = ENV['TESTS']
sh "ruby-test #{test_flags} #{tests}"
sh "rubytest #{test_flags} #{tests}"
else
sh "ruby-test #{test_flags} test/"
sh "rubytest #{test_flags} test/"
end
end

Expand All @@ -61,17 +61,17 @@ task "test:all" => "test"

desc "run core unit tests"
task "test:core" => "tmp" do
sh "ruby-test #{test_flags} -Ilib/core test/core"
sh "rubytest #{test_flags} -Ilib/core test/core"
end

desc "run standard unit tests"
task "test:standard" => "tmp" do
sh "ruby-test #{test_flags} -Ilib/standard test/standard"
sh "rubytest #{test_flags} -Ilib/standard test/standard"
end

desc "run rails compatibility unit tests"
task "test:rails" => "tmp" do
sh "ruby-test #{test_flags} -Ilib/core -Ilib/standard -Ilib/rails test/rails"
sh "rubytest #{test_flags} -Ilib/core -Ilib/standard -Ilib/rails test/rails"
end

desc "run all unit tests with ActiveSupport loaded"
Expand Down
Loading