Skip to content

Commit

Permalink
Merge pull request #2 from manyfold3d/coverage
Browse files Browse the repository at this point in the history
Add coverage measurement and reporting
  • Loading branch information
Floppy authored Dec 18, 2024
2 parents 3fe9239 + 2aa3364 commit d4c7892
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ jobs:
run: bin/rails db:test:prepare

- name: Run tests
uses: paambaati/[email protected]
with:
coverageCommand: bundle exec rspec
env:
RAILS_ENV: test
run: bundle exec rspec
CC_TEST_REPORTER_ID: 76b037109b17b44bcbe2d50604172bd85a7278e35bcc0b2651a21411e29dd143

- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Gemfile.lock
spec/dummy/tmp/local_secret.txt
rspec_examples.txt
.byebug_history
coverage
2 changes: 2 additions & 0 deletions federails-moderation.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ Gem::Specification.new do |spec|
spec.add_dependency "rails", ">= 7.2.2"
spec.add_dependency "federails", "~> 0.4"
spec.add_dependency "public_suffix", "~> 6.0"

spec.add_development_dependency "simplecov", "~> 0.22"
end
3 changes: 3 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'simplecov'
SimpleCov.start :rails

require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test'
require_relative 'dummy/config/environment'
Expand Down

0 comments on commit d4c7892

Please sign in to comment.