Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

get actual groups in suite event #3951

Closed
gimler opened this issue Jan 25, 2017 · 2 comments
Closed

get actual groups in suite event #3951

gimler opened this issue Jan 25, 2017 · 2 comments

Comments

@gimler
Copy link
Contributor

gimler commented Jan 25, 2017

What are you trying to achieve?

Get the actual running groups in extension suite.before event in my extension. to only execute the code if a specific group was set or not.

What do you get instead?

\Codeception\Event\SuiteEvent::getGroups() return all groups found in the suite not only the groups from the tests.

Details

  • Codeception version: 2.2 branch
  • Installation type: Composer
  • List of installed packages (composer show)
@gimler
Copy link
Contributor Author

gimler commented Feb 2, 2017

Another idea is to disable the extension for a specific env. But there is no disable option and also not a default env.

So i can add a extension config option disable but i think this is not so sexy.

The best i think would be to get the active groups in the extension suite event.

@Naktibalda
Copy link
Member

#5938 seems related. SuiteManager validates all group files even when group parameter is not used.

@eXorus eXorus closed this as completed May 14, 2021
@Codeception Codeception locked and limited conversation to collaborators May 14, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants