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 3535 - ruby_version : " 3.2"
3636 options :
3737 rubyopt : " --enable-frozen-string-literal --debug=frozen-string-literal"
38- - ruby_version : " 3.2"
39- options :
40- codecov : 1
4138 exclude :
4239 # Because Rails 7.0 currently doesn't work with Ruby head
4340 # LoadError:
6360 run : bundle exec rake
6461
6562 - name : Upload Coverage
66- if : ${{ matrix.options.codecov }}
6763 uses : codecov/codecov-action@v5
6864 with :
6965 token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 22
33require "spec_helper"
44
5+ # isolated tests need a SimpleCov name otherwise they will overwrite coverage
6+ SimpleCov . command_name "RSpecVersioned_2.7_ActiveJob"
7+
58RSpec . describe "ActiveJob integration" , type : :job do
69 before do
710 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|
1414end
1515
1616task :isolated_specs do
17- Dir [ "spec/isolated/*" ] . each do |file |
17+ Dir [ "spec/isolated/**/*_spec.rb " ] . each do |file |
1818 sh "bundle exec rspec #{ file } "
1919 end
2020end
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- require_relative "../spec_helper"
3+ require "sentry-ruby"
4+ require "sentry/test_helper"
45
56Sentry . init do |config |
67 config . dsn = Sentry ::TestHelper ::DUMMY_DSN
Original file line number Diff line number Diff line change 22
33require_relative "../spec_helper"
44
5- SimpleCov . command_name "RSpecIsolated"
5+ # isolated tests need a SimpleCov name otherwise they will overwrite coverage
6+ SimpleCov . command_name "RSpecIsolatedInit"
67
78RSpec . describe Sentry do
89 context "works within a trap context" , when : { ruby_engine? : "ruby" } do
Original file line number Diff line number Diff line change 66# Because puma doesn't have any dependency, if Rack is not installed the entire test won't work
77return if ENV [ "RACK_VERSION" ] == "0"
88
9- SimpleCov . command_name "RSpecIsolated"
9+ # isolated tests need a SimpleCov name otherwise they will overwrite coverage
10+ SimpleCov . command_name "RSpecIsolatedPuma"
1011
1112RSpec . describe Puma ::Server do
1213 class TestServer
You can’t perform that action at this time.
0 commit comments