Codeception / Codeception/module-rest

REST module prints complete response ("body" report)

Open
#43 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
60
Forks
30
Avg merge
22h 37m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.