Codeception icon indicating copy to clipboard operation
Codeception copied to clipboard

Allow a test with only one #Examples() attribute

Open sascha-egerer opened this issue 1 year ago • 1 comments

If a cest test does only have one #Examples() attribute it is not handled as if there are multiple but an InjectionException occurs. The Examples attribute does now also work if it is not repeated

sascha-egerer avatar Sep 13 '24 09:09 sascha-egerer

Can you have a look at the failing test?

SamMousa avatar Sep 13 '24 11:09 SamMousa

I created https://github.com/Codeception/Codeception/pull/6812 which is based on https://github.com/Codeception/Codeception/pull/6752 which was about the same issue.

This PR can be closed if my PR is accepted.

W0rma avatar Dec 05 '24 09:12 W0rma

Hi @sascha-egerer,

I'm closing this PR in favor of #6812 due to the progress made on the tests.

If you have any additional comments or suggestions regarding this PR, your input would be greatly appreciated. Thanks!

TavoNiievez avatar May 02 '25 03:05 TavoNiievez