Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miller45 authored Aug 16, 2019
1 parent 9ae14cd commit 3b5b447
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,21 @@ Default is `report.html`.
, cssOverrideFile: 'css/style.css'
});
```

### Add custom css inline
If you want to add small customizations without replaceing the whole css file:

```javascript
new HtmlReporter({
baseDirectory: 'tmp/screenshots'
customCssInline:`
.mediumColumn:not([ng-class]) {
white-space: pre-wrap;
}
`
});
```
This example will enable line-wrapping if the tests spec contains newline characters

### Preserve base directory (optional)
You can preserve (or clear) the base directory using `preserveDirectory:` option:
Expand Down

0 comments on commit 3b5b447

Please sign in to comment.