Skip to content

REST module prints complete response ("body" report) #43

@manofearth

Description

@manofearth

Method \Codeception\Module\REST::_failed should take into account shortDebugResponse setting before adding "body" report. Otherwise test output becomes quite unreadable (in case of long responses) even if shortDebugResponse was set to true. Or maybe better create new setting for shortening "body" report (something like shortResponseBody: true). Another solution could be making \Codeception\Test\Metadata::$reports field write-accessible, to allow shortening it in \Codeception\Module::_failed hook

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions