File tree Expand file tree Collapse file tree 6 files changed +10
-8
lines changed
sentry-rails/spec/versioned/2.7 Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 35
35
- ruby_version : " 3.2"
36
36
options :
37
37
rubyopt : " --enable-frozen-string-literal --debug=frozen-string-literal"
38
- - ruby_version : " 3.2"
39
- options :
40
- codecov : 1
41
38
exclude :
42
39
# Because Rails 7.0 currently doesn't work with Ruby head
43
40
# LoadError:
63
60
run : bundle exec rake
64
61
65
62
- name : Upload Coverage
66
- if : ${{ matrix.options.codecov }}
67
63
uses : codecov/codecov-action@v5
68
64
with :
69
65
token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 2
2
3
3
require "spec_helper"
4
4
5
+ # isolated tests need a SimpleCov name otherwise they will overwrite coverage
6
+ SimpleCov . command_name "RSpecVersioned_2.7_ActiveJob"
7
+
5
8
RSpec . describe "ActiveJob integration" , type : :job do
6
9
before do
7
10
make_basic_app
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ RSpec::Core::RakeTask.new(:spec).tap do |task|
14
14
end
15
15
16
16
task :isolated_specs do
17
- Dir [ "spec/isolated/*" ] . each do |file |
17
+ Dir [ "spec/isolated/**/*_spec.rb " ] . each do |file |
18
18
sh "bundle exec rspec #{ file } "
19
19
end
20
20
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
- require_relative "../spec_helper"
3
+ require "sentry-ruby"
4
+ require "sentry/test_helper"
4
5
5
6
Sentry . init do |config |
6
7
config . dsn = Sentry ::TestHelper ::DUMMY_DSN
Original file line number Diff line number Diff line change 2
2
3
3
require_relative "../spec_helper"
4
4
5
- SimpleCov . command_name "RSpecIsolated"
5
+ # isolated tests need a SimpleCov name otherwise they will overwrite coverage
6
+ SimpleCov . command_name "RSpecIsolatedInit"
6
7
7
8
RSpec . describe Sentry do
8
9
context "works within a trap context" , when : { ruby_engine? : "ruby" } do
Original file line number Diff line number Diff line change 6
6
# Because puma doesn't have any dependency, if Rack is not installed the entire test won't work
7
7
return if ENV [ "RACK_VERSION" ] == "0"
8
8
9
- SimpleCov . command_name "RSpecIsolated"
9
+ # isolated tests need a SimpleCov name otherwise they will overwrite coverage
10
+ SimpleCov . command_name "RSpecIsolatedPuma"
10
11
11
12
RSpec . describe Puma ::Server do
12
13
class TestServer
You can’t perform that action at this time.
0 commit comments