-
Notifications
You must be signed in to change notification settings - Fork 131
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
MAGETWO-46837: Implementing extension to wait for readiness metrics t… #161
MAGETWO-46837: Implementing extension to wait for readiness metrics t… #161
Conversation
…o pass before executing test steps
* | ||
* @var TestInterface | ||
*/ | ||
private $test; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of storing the test param, what do you think about just keeping it as a function variable for each of your event functions? I see the only place you use it where you don't have access to an event is in the logDebug function, but you could pass it in as an arg instead of relying on the class to store the test variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That depends on how Codeception handles events. I use the test object from the beforeTest event to track metric failure data ( $test->getMetadata()->setCurrent() ), so if the test object attached to the step events gets recreated or the metadata isn't otherwise persisted between events then that tracking functionality is lost.
I could move that tracking out of the test object and into an extension-specific construct directly instead, though I'd still be passing that around between metrics. Any objections?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm that's a good point. I guess I'd only be concerned about tethering ourselves to codeception's test object for your metadata, but I don't feel that strongly about it atm. @okolesnyk or @magterskine any thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pdohogne-magento @imeron2433 @magterskine
I think in our case when we need to release this next week we can leave it as it is for now. And probably do the refactoring when the story about skip metrics attribute for actions will be in progress.
9fe3f3d
to
0291d36
Compare
… wait and comment to ignored action types
0291d36
to
ff467df
Compare
MQE-3228: Update MFTF to not pass NULL into non-nullable arguments
Code review for MAGETWO-46837 Readiness Check extension