Skip to content

refact: makes tests consistent #142

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

Merged
merged 1 commit into from
May 24, 2025
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
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,24 @@ Rake::TestTask.new(:test) do |t|
t.test_files = FileList["test/**/*_test.rb"]
end

Rake::TestTask.new("test:unit") do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/unit/**/*_test.rb"]
end

Rake::TestTask.new("test:integration") do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/integration/**/*_test.rb"]
end

desc "Run all tests with coverage"
task :coverage do
ENV["COVERAGE"] = "true"
Rake::Task["test"].invoke
end

task "clobber" do
puts "Cleanup tmp/*.png"
FileUtils.rm_rf(Dir["./tmp/*"])
Expand Down
2 changes: 1 addition & 1 deletion scripts/benchmark/find_region_benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

module Capybara::Screenshot::Diff
class Drivers::FindRegionBenchmark
TEST_IMAGES_DIR = Pathname.new(File.expand_path("../../test/images", __dir__))
TEST_IMAGES_DIR = Pathname.new(File.expand_path("../../test/fixtures/images", __dir__))
APP_SCREENSHOTS_DIR = Pathname.new(
File.expand_path("../../test/fixtures/app/doc/screenshots/chrome/macos/", __dir__)
)
Expand Down
24 changes: 0 additions & 24 deletions test/capybara/screenshot/diff/area_calculator_test.rb

This file was deleted.

37 changes: 0 additions & 37 deletions test/capybara/screenshot/diff/comparison_loader_test.rb

This file was deleted.

135 changes: 0 additions & 135 deletions test/capybara/screenshot/diff/difference_finder_test.rb

This file was deleted.

22 changes: 0 additions & 22 deletions test/capybara/screenshot/diff/difference_test.rb

This file was deleted.

Loading
Loading