Skip to content

Commit e4608f5

Browse files
committed
chore(sidekiq): add spec:isolated rake task
1 parent b368e8d commit e4608f5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

sentry-sidekiq/Rakefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# frozen_string_literal: true
22

33
require "bundler/gem_tasks"
4-
require "rspec/core/rake_task"
4+
require_relative "../lib/sentry/test/rake_tasks"
55

6-
RSpec::Core::RakeTask.new(:spec).tap do |task|
7-
task.rspec_opts = "--order rand"
8-
end
6+
Sentry::Test::RakeTasks.define_spec_tasks(
7+
spec_pattern: "spec/sentry/**/*_spec.rb",
8+
spec_rspec_opts: "--order rand --format progress",
9+
isolated_specs_pattern: "spec/isolated/**/*_spec.rb",
10+
isolated_rspec_opts: "--format progress"
11+
)
912

10-
task default: :spec
13+
task default: [:spec, :"spec:isolated"]

0 commit comments

Comments
 (0)