Skip to content

Commit

Permalink
Add pronto and undercover
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Jan 27, 2025
1 parent 239f9c9 commit dc6a707
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ jobs:
bundler: ${{ matrix.bundler || 'default' }}
- run: bundle exec rake compile
- run: bundle exec rake test
- uses: k1LoW/octocov-action@v1
- run: bundle exec pronto run -f github_status github_pr -c origin/${{ github.base_ref }}
if: ${{ !!matrix.coverage }}
env:
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
PRONTO_GITHUB_ACCESS_TOKEN: "${{ github.token }}"
javascript_test:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ source "https://rubygems.org"

gemspec

gem 'logger'
gem 'pronto'
gem 'pronto-undercover'
gem 'bootsnap' # required by the Rails apps generated in tests
gem 'stackprof', platform: :ruby
gem 'pry'
Expand Down
1 change: 1 addition & 0 deletions graphql.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake-compiler'
s.add_development_dependency "rubocop"
s.add_development_dependency "simplecov"
s.add_development_dependency "simplecov-lcov"
# website stuff
s.add_development_dependency "jekyll"
s.add_development_dependency "yard"
Expand Down
11 changes: 10 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,24 @@
require 'rubygems'
require 'bundler'
require 'simplecov'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter
]
SimpleCov.start do
enable_coverage :branch
add_filter "spec/"
add_group "Generators", "lib/generators"
add_group "Execution", [/analysis/, /language/, /execution/, /static_validation/, /pagination/, /subscriptions/, /query/, /introspection/, /dataloader/, /backtrace/]
add_group "Execution", [/analysis/, /language/, /execution/, /static_validation/, /pagination/, /subscriptions/, /query/, /tracing/, /introspection/, /dataloader/, /backtrace/]
add_group "Helpers", [/rake_task/, /testing/, /rubocop/]
add_group "Definition", [/types/, /relay/, /schema/]

end

require "undercover"

Bundler.require

# Print full backtrace for failures:
Expand Down

0 comments on commit dc6a707

Please sign in to comment.