Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coverage for tested API operations #21

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Add coverage for tested API operations #21

merged 1 commit into from
Apr 10, 2024

Conversation

skryukov
Copy link
Owner

This PR adds coverage for tested API operations:

# spec/rails_helper.rb

RSpec.configure do |config|
  # To enable coverage, pass `coverage: :report` option,
  # and to raise an error when an operation is not covered, pass `coverage: :strict` option:
  config.include Skooma::RSpec[Rails.root.join("docs", "openapi.yml"), coverage: :report], type: :request
end
$ bundle exec rspec
# ...
OpenAPI schema /openapi.yml coverage report: 110 / 194 operations (56.7%) covered.
Uncovered paths:
GET /api/uncovered 200
GET /api/partially_covered 403
# ...

@skryukov skryukov merged commit f422f59 into main Apr 10, 2024
8 checks passed
@skryukov skryukov deleted the coverage branch April 10, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant