Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Evilweed committed May 16, 2017
1 parent e24128a commit db84524
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports.config = {
onPrepare: function() {
// Add a screenshot reporter and store screenshots to `/tmp/screenshots`:
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
}));
}
}
Expand All @@ -63,7 +63,7 @@ exports.config = {
onPrepare: function() {
// Add a screenshot reporter and store screenshots to `/tmp/screenshots`:
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
}).getJasmine2Reporter());
}
}
Expand All @@ -76,7 +76,7 @@ the screenshot reporter:

```javascript
var reporter = new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
});
```

Expand All @@ -89,7 +89,7 @@ The function passed as second argument to the constructor is used to build up pa
var path = require('path');

new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, pathBuilder: function pathBuilder(spec, descriptions, results, capabilities) {
// Return '<browser>/<specname>' as path for screenshots:
// Example: 'firefox/list-should work'.
Expand All @@ -107,7 +107,7 @@ You can modify the contents of the JSON meta data file by passing a function `me

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, metaDataBuilder: function metaDataBuilder(spec, descriptions, results, capabilities) {
// Return the description of the spec and if it has passed or not:
return {
Expand All @@ -123,7 +123,7 @@ You can store all images in subfolder by using `screenshotsSubfolder` option:

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, screenshotsSubfolder: 'images'
});
```
Expand All @@ -136,7 +136,7 @@ You can store all JSONs in subfolder by using `jsonsSubfolder` option:

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, jsonsSubfolder: 'jsons'
});
```
Expand All @@ -149,7 +149,7 @@ You can define if you want report from skipped test cases using the `takeScreenS

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, takeScreenShotsForSkippedSpecs: true
});
```
Expand All @@ -160,7 +160,7 @@ Default is `false`.

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, takeScreenShotsOnlyForFailedSpecs: true
});
```
Expand All @@ -174,7 +174,7 @@ Default is `false`.

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, docTitle: 'my reporter'
});
```
Expand All @@ -186,7 +186,7 @@ Default is `Generated test report`.

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, docName: 'index.html'
});
```
Expand All @@ -197,7 +197,7 @@ Default is `report.html`.

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, cssOverrideFile: 'css/style.css'
});
```
Expand All @@ -207,7 +207,7 @@ Default is `report.html`.

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, preserveDirectory: false
});
```
Expand All @@ -219,7 +219,7 @@ Default is `true`.

```javascript
new HtmlReporter({
baseDirectory: '/tmp/screenshots'
baseDirectory: 'tmp/screenshots'
, gatherBrowserLogs: false
});
```
Expand Down

0 comments on commit db84524

Please sign in to comment.