Skip to content

Commit

Permalink
feat: run the test suite in compressed and uncompressed modes
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Aug 22, 2023
1 parent 5690de0 commit e230c58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new("test:lib") do |t|
Rake::TestTask.new("test:lib:uncompressed") do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
t.warning = false
end
task "test" => "test:lib"
Rake::TestTask.new("test:lib:compressed") do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb", "test/test_compressed.rb"]
t.warning = false
end
task "test" => "test:lib:compressed"
task "test" => "test:lib:uncompressed"

task :default

Expand Down
3 changes: 3 additions & 0 deletions test/test_compressed.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

ENV["SYSKIT_LOG_TEST_COMPRESS"] = "1"

0 comments on commit e230c58

Please sign in to comment.