-
I have an extension declared using @RegisterExtension annotation and I would like to control whether this extension is enabled. Is there a way to disable such an extension, for example via an environment variable? |
Beta Was this translation helpful? Give feedback.
Answered by
sbrannen
Nov 25, 2023
Replies: 2 comments 1 reply
-
This is a duplicate of: Please see the comments in that issue for details. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wazzeps
-
Thanks for the quick answer, @sbrannen. Maybe we should add your example @RegisterExtension
Extension testWatcher = Boolean.getBoolean("browserstack.enabled") ?
new BrowserStackTestWatcher() :
new Extension() {}; to the annotation documentation to avoid asking such questions in the future? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a duplicate of:
Please see the comments in that issue for details.