Codeception / Codeception/Specify
Type error when using Codeception 5th version
- 主要言語
- 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() から始め、TestCaseWrapper を経由する Codeception 5 の実行パスを追い、バージョン 4 で TestResult がどのように取得されていたかを比較します。ドキュメントに記載された Specify の初期状態のセットアップを再現し、TypeError が発生しなくなった時点で完了することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- testing
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100