-
Notifications
You must be signed in to change notification settings - Fork 3
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
convert request, response tests to a standard format for wider publication #60
Comments
in the harness that makes use of this test format, run the tests twice, as we do now - once parsing into HTTP::Request/Response objects, and the other parsing into Mojo::Message::Request/Response objects. Perform any doctoring of the HTTP::Request/Response objects as needed (set missing protocol?) |
consider outputting the tests in yaml rather than json, for readability - I think yaml supports a "heredoc" operator? use this as a guide: https://yaml-multiline.info/
The $UseBlock option in YAML can do this:
|
We can autogenerate this by creating a harness which does some method modifications and then calls
and then when execution is complete, dump the yaml version of the tests. |
and then we'll need to write a harness which knows how to read in the test cases and executes them, just as we do via Test::JSON::Schema::Acceptance. If this data format catches on we can publish the harness, and test cases, in Test::OpenAPI::Acceptance. |
kinda duped by #77 |
This is modelled after the pattern used in JSON-Schema-Test-Suite.
each test group consists of:
And of course we should provide a JSON Schema describing this test structure.
Convert all existing request and response tests to this format. If all details from the test are preserved, we can delete the originals.
The text was updated successfully, but these errors were encountered: