Skip to content

v0.3.1

Compare
Choose a tag to compare
@skryukov skryukov released this 12 Apr 05:24
· 8 commits to main since this release
540ed03

Added

  • Add coverage for tested API operations. (@skryukov)

    # 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
    # ...

Full Changelog: v0.3.0...v0.3.1