diff --git a/README.md b/README.md index 5e4a760..4f76112 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Java library which allows to easily collect JS errors received in Chromedriver s Currently, the library supports JUnit5 and TestNG testing framework. -Example of JUnit5 usage: +### Example of JUnit5 usage: ``` @Test @@ -26,7 +26,7 @@ Example of JUnit5 usage: } ``` -Example of TestNG usage: +### Example of TestNG usage: ``` @Listeners(JSErrorsCollectorListener.class) @@ -59,7 +59,7 @@ public class JSCollectorTestNGTest { } ``` -Annotation values +### Annotation values By default, using the annotation will cause your test to fail on JS errors received during Chromedriver session, and it would also use java.util.logging.Logger object to log JS errors after test execution. @@ -70,16 +70,34 @@ To disable asserting JS errors after test execution, use: @JSErrorsCollectorTestNG(assertJSErrors = false) ``` - To disable logging JS errors after test execution, use: ``` @JSErrorsCollectorTestNG(logJSErrors = false) ``` - To disable both, use: ``` @JSErrorsCollectorTestNG(logJSErrors = false, assertJSErrors = false) ``` + +### Maven dependencies + +JUnit5: +``` + + com.github.automatedowl + chromedriver-js-errors-collector-junit + 1.0.1 + +``` + +TestNG: +``` + + com.github.automatedowl + chromedriver-js-errors-collector-testng + 1.0.1 + +```