Skip to content

Commit

Permalink
screenshots options, src fix, bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Nederhoff committed Oct 24, 2019
1 parent 6600587 commit 89588ff
Show file tree
Hide file tree
Showing 9 changed files with 465 additions and 137 deletions.
4 changes: 2 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**/*.ts
**/*.js.map

node_modules
demo-app
node_modules/
demo-app/

*.tgz
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## v2.0.5 (2019-10-24)
* Possible to use either string or string[] as `src` property
* screenshot options are nested in the `screenshot` property:
```json
"screenshots": {
"path": "./target/testreport/screenshots",
"takeOnFails": true,
"pathPattern": "test-${TEST_INDEX}-${FILE_INDEX}_${QUARANTINE_ATTEMPT}",
"fullPage": false
}
```

## v2.0.4 (2019-9-18)
No need specify `port` and `host` option anymore
`host` is only to overwrite the hostname TestCafe runs on when running without launching the Angular Application. When
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ $ npm pack
* QR code
* video
* ssl
* clientScripts
9 changes: 7 additions & 2 deletions demo-app/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@
"browsers": [
"chrome --no-sandbox --window-size=1920,1080"
],
"screenshotsOnFails": true,
"screenshots": {
"path": "./target/testreport/screenshots",
"takeOnFails": true,
"pathPattern": "test-${TEST_INDEX}-${FILE_INDEX}_${QUARANTINE_ATTEMPT}",
"fullPage": false
},
"reporters": [
{
"name": "spec"
Expand All @@ -129,7 +134,7 @@
"configurations": {
"passing": {
"devServerTarget": "demo-app:serve:stubbed",
"src": ["e2e/passing.e2e-spec.ts"]
"src": "e2e/passing.e2e-spec.ts"
},
"failing": {
"devServerTarget": "demo-app:serve:stubbed",
Expand Down
Loading

0 comments on commit 89588ff

Please sign in to comment.