Skip to content

Commit 89588ff

Browse files
author
Tim Nederhoff
committed
screenshots options, src fix, bumped version
1 parent 6600587 commit 89588ff

File tree

9 files changed

+465
-137
lines changed

9 files changed

+465
-137
lines changed

.npmignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**/*.ts
55
**/*.js.map
66

7-
node_modules
8-
demo-app
7+
node_modules/
8+
demo-app/
99

1010
*.tgz

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## v2.0.5 (2019-10-24)
4+
* Possible to use either string or string[] as `src` property
5+
* screenshot options are nested in the `screenshot` property:
6+
```json
7+
"screenshots": {
8+
"path": "./target/testreport/screenshots",
9+
"takeOnFails": true,
10+
"pathPattern": "test-${TEST_INDEX}-${FILE_INDEX}_${QUARANTINE_ATTEMPT}",
11+
"fullPage": false
12+
}
13+
```
14+
315
## v2.0.4 (2019-9-18)
416
No need specify `port` and `host` option anymore
517
`host` is only to overwrite the hostname TestCafe runs on when running without launching the Angular Application. When

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ $ npm pack
5656
* QR code
5757
* video
5858
* ssl
59+
* clientScripts

demo-app/angular.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@
115115
"browsers": [
116116
"chrome --no-sandbox --window-size=1920,1080"
117117
],
118-
"screenshotsOnFails": true,
118+
"screenshots": {
119+
"path": "./target/testreport/screenshots",
120+
"takeOnFails": true,
121+
"pathPattern": "test-${TEST_INDEX}-${FILE_INDEX}_${QUARANTINE_ATTEMPT}",
122+
"fullPage": false
123+
},
119124
"reporters": [
120125
{
121126
"name": "spec"
@@ -129,7 +134,7 @@
129134
"configurations": {
130135
"passing": {
131136
"devServerTarget": "demo-app:serve:stubbed",
132-
"src": ["e2e/passing.e2e-spec.ts"]
137+
"src": "e2e/passing.e2e-spec.ts"
133138
},
134139
"failing": {
135140
"devServerTarget": "demo-app:serve:stubbed",

0 commit comments

Comments
 (0)