Type error when using Codeception 5th version
还没有人认领这个 Issue。
评估
调研方向
从 SpecifyTest::run() 开始,跟踪 Codeception 5 通过 TestCaseWrapper 的执行路径,并比较 TestResult 在版本 4 中是如何获取的。复现文档中记载的开箱即用的 Specify 设置,并在 TypeError 不再发生时验证执行完成。
由索引模型根据 Issue 内容生成。
描述
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)
- 主要语言
- PHP
- 星标
- 157
- 派生
- 24
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Codeception/Specify 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
Codeception/Specify#63 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Codeception/Specify#61 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
Codeception/Specify#53 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Codeception/Specify#10 · 2 条评论 · 1 个 reaction ·
查看 Codeception/Specify 的全部 Issue
相似的 Issue
-
sync-en
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
forms ui
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
taskforcesh/bullmq#5238 ·
维护者通常 1 天内回复
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it可能已有人在做 @bfs2021 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复