Skip to content

Test::Mojo role with helper subs #1

@karenetheridge

Description

@karenetheridge

Helper subs to test requests and responses.

  • $t->validate_request, $t->validate_response to use $t->tx->req, $t->tx->res (need to stash the path information just like the plugin does). Or maybe $t->request_valid, $t->response_valid are better..
  • possibly allow using the openapi document to test requests and responses without actually mounting it in the app.
  • support extra options to allow specifying whether we expect validation to fail, and if so what error(s) we might be expecting... via $t->request_invalid, $t->response_invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions