Skip to content

Commit 768dc9e

Browse files
committed
chore(sidekiq): add spec:isolated rake task
1 parent 6c76b7f commit 768dc9e

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

sentry-sidekiq/Rakefile

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

3-
require "bundler/gem_tasks"
4-
require "rspec/core/rake_task"
3+
require "rake/clean"
4+
require "bundler/gem_helper"
55

6-
RSpec::Core::RakeTask.new(:spec).tap do |task|
7-
task.rspec_opts = "--order rand"
8-
end
6+
Bundler::GemHelper.install_tasks(name: "sentry-sidekiq")
97

10-
task default: :spec
8+
require_relative "../lib/sentry/test/rake_tasks"
9+
10+
ISOLATED_SPECS = "spec/isolated/**/*_spec.rb"
11+
12+
Sentry::Test::RakeTasks.define_spec_tasks(
13+
isolated_specs_pattern: ISOLATED_SPECS,
14+
spec_exclude_pattern: ISOLATED_SPECS
15+
)
16+
17+
task default: [:spec, :"spec:isolated"]

0 commit comments

Comments
 (0)