Sha256: a6c1befe775f9a2b1022fd095f261e5392d05eb50de3c83c4ef535fc372b097d
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require "rake/testtask" namespace :test do desc "Run all tests" task all: [:fast, :system] Rake::TestTask.new(:single) do |t| ENV["TZ"] = "Asia/Taipei" t.libs << "test" t.libs << "lib" t.test_files = FileList[ENV["TESTS"]] end Rake::TestTask.new(:fast) do |t| ENV["TZ"] = "Asia/Taipei" t.libs << "test" t.libs << "lib" t.test_files = FileList[ "test/components/**/*_test.rb", "test/lib/**/*_test.rb", "test/primer/**/*_test.rb", "test/linters/**/*_test.rb", "test/rubocop/**/*_test.rb" ] end Rake::TestTask.new(:system) do |t| ENV["TZ"] = "Asia/Taipei" t.libs << "test" t.libs << "lib" t.test_files = FileList["test/system/**/*_test.rb", "test/previews/**/*_test.rb"] end Rake::TestTask.new(:bench) do |t| t.libs << "test" t.test_files = FileList["test/benchmarks/**/bench_*.rb"] t.verbose = true end end task :test do if ENV["TESTS"] Rake::Task["test:single"].invoke else Rake::Task["test:all"].invoke end end task bench: "test:bench"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
primer_view_components-0.0.97 | lib/tasks/test.rake |
primer_view_components-0.0.96 | lib/tasks/test.rake |
primer_view_components-0.0.95 | lib/tasks/test.rake |