Class: Skooma::Minitest

Inherits:
Skooma::Matchers::Wrapper show all
Defined in:
lib/skooma/minitest.rb

Overview

Minitest helpers for OpenAPI schema validation

Examples:

describe TestApp do
  include Skooma::Minitest[Rails.root.join("docs", "openapi.yml")]
  # ...
end

Defined Under Namespace

Modules: HelperMethods

Constant Summary

Constants inherited from Skooma::Matchers::Wrapper

Skooma::Matchers::Wrapper::TEST_REGISTRY_NAME

Instance Attribute Summary

Attributes inherited from Skooma::Matchers::Wrapper

#coverage, #schema

Instance Method Summary collapse

Constructor Details

#initialize(openapi_path, **params) ⇒ Minitest

Returns a new instance of Minitest.



39
40
41
42
43
44
45
# File 'lib/skooma/minitest.rb', line 39

def initialize(openapi_path, **params)
  super(HelperMethods, openapi_path, **params)

  ::Minitest.after_run do
    coverage.report
  end
end