Skip to content

Commit

Permalink
Merge pull request #3244 from alphagov/2665-check-ruby-test-coverage-…
Browse files Browse the repository at this point in the history
…before-merging-prs

Check ruby test coverage before merging PRs
  • Loading branch information
unoduetre authored Jul 10, 2024
2 parents 79dd58d + 5b6fbf3 commit 6203aa9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions test/controllers/development_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require "test_helper"

class DevelopmentControllerTest < ActionController::TestCase
test "shows inde page" do
get :index
assert_response :ok
assert response.body.include?("This page is intended to be shown in development and on Heroku review apps.")
end
end
6 changes: 5 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

# Must go at top of file
require "simplecov"
SimpleCov.start

SimpleCov.start "rails" do
enable_coverage :branch
minimum_coverage 95
end

require "i18n/coverage"
require "i18n/coverage/printers/file_printer"
Expand Down

0 comments on commit 6203aa9

Please sign in to comment.