Replies: 2 comments
-
That's a nice idea!
Maybe raise an error optionally like:
Do you want to keep the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here test coverage means that the gem should be able to track and report which requests and reponses of an API description have been called during a test run.
The more request and response definitions have been called the better.
This would unaware about JSON Schema and it's branches like
if/else
,oneOf
,anyOf
,type: […]
or the like, but only care about paths, response statuses and content-types.Configuration could work like this:
Then you just run your tests and it will track all calls
RuntimeRequest#validate
andRuntimeResponse#validate
. So this will just work either if you are using the built in middlewares (which you should) or roll your own.Questions:
OpenapiFirst::Test::Coverage
orOpenapiFirst::Coverage
?Beta Was this translation helpful? Give feedback.
All reactions