Codeception / Codeception/Specify

Type error when using Codeception 5th version

未关闭
#60 12 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
158
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 SpecifyTest::run() 开始,跟踪 Codeception 5 通过 TestCaseWrapper 的执行路径,并比较 TestResult 在版本 4 中是如何获取的。复现文档中记载的开箱即用的 Specify 设置,并在 TypeError 不再发生时验证执行完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。