You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,3 +19,64 @@ and hermione plugins [here](https://github.com/gemini-testing/hermione#plugins).
19
19
```bash
20
20
npm install json-reporter
21
21
```
22
+
23
+
## Usage
24
+
25
+
Plugin has following configuration:
26
+
27
+
***enabled** (optional) `Boolean` – enable/disable the plugin; by default plugin is enabled
28
+
***path** (optional) `String` - path for saving json report file; by default json report will be saved into `json-reporter.json` inside current work directory.
29
+
30
+
Also there is ability to override plugin parameters by CLI options or environment variables
31
+
(see [configparser](https://github.com/gemini-testing/configparser)).
32
+
33
+
### Gemini usage
34
+
35
+
Add plugin to your `gemini` config file:
36
+
37
+
```js
38
+
module.exports= {
39
+
// ...
40
+
plugins: {
41
+
'json-reporter/gemini': {
42
+
enabled:true,
43
+
path:'my/custom/report.json'
44
+
}
45
+
},
46
+
//...
47
+
}
48
+
```
49
+
50
+
### Hermione usage
51
+
52
+
Add plugin to your `hermione` config file:
53
+
54
+
```js
55
+
module.exports= {
56
+
// ...
57
+
plugins: {
58
+
'json-reporter/hermione': {
59
+
enabled:true,
60
+
path:'my/custom/report.json'
61
+
}
62
+
},
63
+
//...
64
+
}
65
+
```
66
+
67
+
## Testing
68
+
69
+
Run [mocha](http://mochajs.org) tests:
70
+
```bash
71
+
npm run test-unit
72
+
```
73
+
74
+
Run tests with [istanbul](https://github.com/gotwarlost/istanbul) coverage calculation:
75
+
```bash
76
+
npm run cover
77
+
```
78
+
79
+
Run [eslint](http://eslint.org) codestyle verification
0 commit comments