Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Migrate commands to use AsCommand attribute #6850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025

Conversation

TavoNiievez
Copy link
Member

No description provided.

@TavoNiievez TavoNiievez force-pushed the as_command branch 3 times, most recently from 74bd4a8 to fbe5d97 Compare April 29, 2025 16:49
@TavoNiievez TavoNiievez marked this pull request as ready for review April 29, 2025 18:11
Comment on lines 25 to 29
#[AsCommand(
name: 'generate:page',
description: 'Generates empty PageObject class'
)]
class GeneratePageObject extends Command
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the autogenerated console name which was created before but wasn't it generate:pageobject instead of generate:page?

generate:pageobject is shown if I run vendor/bin/codecept list in my local app.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't worry, you're right.

I fixed the following names: generate:environment, generate:groupobject, generate:pageobject

self-update is not listed, but I never used that and I don't even know if it is working.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The interesting thing about this is that the tests did not complain despite the change, suggesting that we are not testing this as we should ;-)

@TavoNiievez TavoNiievez merged commit e6ddcb0 into Codeception:main May 1, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants