Skip to content

Commit b7509de

Browse files
committed
adding a script boolean
1 parent 2a58118 commit b7509de

File tree

3 files changed

+26731
-34
lines changed

3 files changed

+26731
-34
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Examples:
7474

7575
## Usage, Node
7676

77-
Xunit Viewer is asynchronous so you may need to wrap it up like so
77+
Xunit Viewer is asynchronous so you may need to wrap it up like so. **NOTE** The `script` parameter which will skip all Xunit Viewer's exit codes.
7878

7979
```js
8080
const xunitViewer = require('xunit-viewer')
@@ -85,7 +85,8 @@ const main = async () => {
8585
results: 'data',
8686
ignore: ['_thingy', 'invalid'],
8787
title: 'Xunit View Sample Tests',
88-
output: 'output.html'
88+
output: 'output.html',
89+
script: true
8990
})
9091
}
9192
main()
@@ -101,7 +102,8 @@ xunitViewer({
101102
results: 'data',
102103
ignore: ['_thingy', 'invalid'],
103104
title: 'Xunit View Sample Tests',
104-
output: 'output.html'
105+
output: 'output.html',
106+
script: true
105107
})
106108
```
107109

0 commit comments

Comments
 (0)