-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Kuba/ct/ct hooks order option/otp 18682 #7496
Kuba/ct/ct hooks order option/otp 18682 #7496
Conversation
CT Test Results 1 files 11 suites 5m 11s ⏱️ Results for commit abde78f. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts
// Erlang/OTP Github Action Bot |
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.
The changes look good and from what I can tell they also work :)
While digging in the code I noticed that the ct_hooks option can be given to a lot of more places than we originally intended. The CTH User's Guide I wrote a long time ago restricts it to three function, but the original implementation seems to have allowed it (inadvertently) in a lot of other places which through the years have become documented, though I can't find any tests for it.
Not much we can do about that now, but I'm not sure we need to make the same mistake for ct_hook_order
. IMO it should be enough to allow that option in the suite
callback and in test specs/command line.
I will gladly reduce supported callbacks to suite. I tried to follow Also on 2nd thought, I think |
ccead74
to
434abbf
Compare
- support ct_hooks_order only in cmd line, spec and suite/0
434abbf
to
abde78f
Compare
No description provided.