Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/sentry_delayed_job_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
RUBYOPT: ${{ matrix.options.rubyopt }}
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-delayed_job/Gemfile
BUNDLE_WITHOUT: rubocop
JRUBY_OPTS: "--debug" # For more accurate coverage
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sentry_opentelemetry_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-opentelemetry/Gemfile
BUNDLE_WITHOUT: rubocop
OPENTELEMETRY_VERSION: ${{ matrix.opentelemetry_version }}
JRUBY_OPTS: "--debug" # For more accurate coverage
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sentry_rails_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-rails/Gemfile
BUNDLE_WITHOUT: rubocop
RAILS_VERSION: ${{ matrix.rails_version }}
JRUBY_OPTS: "--debug" # For more accurate coverage
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sentry_resque_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
RUBYOPT: ${{ matrix.options.rubyopt }}
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-resque/Gemfile
BUNDLE_WITHOUT: rubocop
JRUBY_OPTS: "--debug" # For more accurate coverage
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sentry_ruby_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
BUNDLE_WITHOUT: rubocop
RACK_VERSION: ${{ matrix.rack_version }}
REDIS_RB_VERSION: ${{ matrix.redis_rb_version }}
JRUBY_OPTS: "--debug" # For more accurate coverage
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sentry_sidekiq_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-sidekiq/Gemfile
BUNDLE_WITHOUT: rubocop
SIDEKIQ_VERSION: ${{ matrix.sidekiq_version }}
JRUBY_OPTS: "--debug" # For more accurate coverage
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion sentry-rails/.rspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--format documentation
--format progress
--color
--require spec_helper
123 changes: 0 additions & 123 deletions sentry-rails/spec/dummy/test_rails_app/app.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# frozen_string_literal: true

class HelloController < ActionController::Base
protect_from_forgery with: :exception

def exception
raise "An unhandled exception!"
end

def reporting
render plain: Sentry.last_event_id
end

def view_exception
render inline: "<%= foo %>"
end

def view
render template: "test_template"
end

def world
render plain: "Hello World!"
end

def with_custom_instrumentation
custom_event = "custom.instrument"
ActiveSupport::Notifications.subscribe(custom_event) do |*args|
data = args[-1]
data += 1
end

ActiveSupport::Notifications.instrument(custom_event, 1)

head :ok
end

def not_found
raise ActionController::BadRequest
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# frozen_string_literal: true

class PostsController < ActionController::Base
def index
Post.all.to_a
raise "foo"
end

def show
p = Post.find(params[:id])

render plain: p.id
end

def attach
p = Post.find(params[:id])

attach_params = {
io: File.open(File.join(Rails.root, "public", "sentry-logo.png")),
filename: "sentry-logo.png"
}

# service_name parameter was added in Rails 6.1
if Rails.gem_version >= Gem::Version.new("6.1.0")
attach_params[:service_name] = "test"
end

p.cover.attach(attach_params)

render plain: p.id
end
end
5 changes: 5 additions & 0 deletions sentry-rails/spec/dummy/test_rails_app/app/models/comment.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

class Comment < ActiveRecord::Base
belongs_to :post
end
6 changes: 6 additions & 0 deletions sentry-rails/spec/dummy/test_rails_app/app/models/post.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

class Post < ActiveRecord::Base
has_many :comments
has_one_attached :cover
end
113 changes: 0 additions & 113 deletions sentry-rails/spec/dummy/test_rails_app/apps/5-2.rb

This file was deleted.

Loading
Loading