Skip to content

Commit

Permalink
add support to auto run coverage analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
nandiniiys committed Sep 23, 2024
1 parent 58e1501 commit 24c3179
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions features/support/rspec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

# This file prevents RSpec from issuing DEPRECATION warnings when it encounters
# deprecated syntax in `features/step_definitions/web_steps`.

require 'rspec/core'

RSpec.configure do |config|
config.mock_with :rspec do |c|
c.syntax = %i[should expect]
end
config.expect_with :rspec do |c|
c.syntax = %i[should expect]
end
end
4 changes: 4 additions & 0 deletions features/support/simplecov.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

require 'simplecov'
SimpleCov.start 'rails'
3 changes: 3 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'simplecov'
SimpleCov.start 'rails'

# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test'
Expand Down

0 comments on commit 24c3179

Please sign in to comment.