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 摘要。