@@ -4,7 +4,7 @@ Java library which allows to easily collect JS errors received in Chromedriver s
44
55Currently, the library supports JUnit5 and TestNG testing framework.
66
7- Example of JUnit5 usage:
7+ ### Example of JUnit5 usage:
88
99```
1010 @Test
@@ -26,7 +26,7 @@ Example of JUnit5 usage:
2626 }
2727```
2828
29- Example of TestNG usage:
29+ ### Example of TestNG usage:
3030
3131```
3232@Listeners(JSErrorsCollectorListener.class)
@@ -59,7 +59,7 @@ public class JSCollectorTestNGTest {
5959 }
6060```
6161
62- Annotation values
62+ ### Annotation values
6363
6464By default, using the annotation will cause your test to fail on JS errors received during Chromedriver session,
6565and 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:
7070@JSErrorsCollectorTestNG(assertJSErrors = false)
7171```
7272
73- 7473To disable logging JS errors after test execution, use:
7574
7675```
7776@JSErrorsCollectorTestNG(logJSErrors = false)
7877```
7978
80- 8179To disable both, use:
8280
8381```
8482@JSErrorsCollectorTestNG(logJSErrors = false, assertJSErrors = false)
8583```
84+ 85+ ### Maven dependencies
86+ 87+ JUnit5:
88+ ```
89+ <dependency>
90+ <groupId>com.github.automatedowl</groupId>
91+ <artifactId>chromedriver-js-errors-collector-junit</artifactId>
92+ <version>1.0.1</version>
93+ </dependency>
94+ ```
95+ 96+ TestNG:
97+ ```
98+ <dependency>
99+ <groupId>com.github.automatedowl</groupId>
100+ <artifactId>chromedriver-js-errors-collector-testng</artifactId>
101+ <version>1.0.1</version>
102+ </dependency>
103+ ```
0 commit comments