Created
April 3, 2019 16:47
-
-
Save JamesZoft/1d6c1c6bf24975a11675c82558428863 to your computer and use it in GitHub Desktop.
Injecting a Jupiter extension into a JUnit test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyTest { | |
//... | |
private WebDriver driver; | |
@RegisterExtension | |
TakeScreenshotOnFailureExtension takeScreenshotOnFailureExtension = new TakeScreenshotOnFailureExtension(driver); | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment