Codeception / Codeception/Specify

Type error when using Codeception 5th version

Open
#60 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
158
Forks
24
PR merge metrics
No merged PRs in 30d

Description

More information:
If you uses specify out of box (as described in github page), it will throw an TypeError: `Codeception\Specify\SpecifyTest::run(): Return value must be of type PHPUnit\Framework\TestResult, null returned`

I have looked in and noticed that `TestResult` object was got from `TestCase` object. That how it works in 4th version. And codeception runs test using `TestCase::run` method. But in 5th version it uses `TestCaseWrapper`. That's why there is not `TestResult` object in `TestCase` to give it in Specify

Codeception has default configurations (just after codecept bootstrap)

Contributor guide

No contributing guide indexed for this repository

Research direction

Begin with SpecifyTest::run() and the Codeception 5 execution path through TestCaseWrapper, comparing how TestResult was obtained in version 4. Reproduce the documented out-of-box Specify setup and verify completion when the TypeError no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.