Codeception / Codeception/Specify

Type error when using Codeception 5th version

Offen
#60 12 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PHP
Sterne
158
Forks
24
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.