testcafe-blink-diff
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -23,4 +23,4 @@ const wargs = require('wargs'); | ||
- Run testcafe with \`--take-snapshot\` to take the base screenshots, | ||
run again without \`--take-snapshot\` to take actual screenshots | ||
- Run testcafe with \`--take-snapshot base\` to take the base screenshots, | ||
run again with \`--take-snapshot actual\` to take actual screenshots | ||
@@ -27,0 +27,0 @@ - Run ${pkgInfo.name} to generate a report from the taken screenshots, |
{ | ||
"name": "testcafe-blink-diff", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Visual regression for Testcafé through BlinkDiff", | ||
@@ -33,4 +33,4 @@ "main": "lib/index.js", | ||
"eslint-plugin-import": "^2.14.0", | ||
"somedom": "0.0.5" | ||
"somedom": "0.0.7" | ||
} | ||
} |
@@ -28,3 +28,3 @@ [![NPM version](https://badge.fury.io/js/testcafe-blink-diff.png)](http://badge.fury.io/js/testcafe-blink-diff) | ||
Run your tests adding `--take-snapshot` to take the **base** screenshots. | ||
Each time you run tests with `--take-snapshot base` it'll take the **base** screenshots. | ||
@@ -35,3 +35,3 @@ ```bash | ||
Now run the same tests without `--take-snapshot` to take the **actual** screenshots to compare with. | ||
Now run the same tests `--take-snapshot actual` to take the **actual** screenshots to compare with. | ||
@@ -41,3 +41,3 @@ Finally, invoke the CLI for generating a simple `generated/index.html` report, e.g. | ||
```bash | ||
$ npx testcafe-blink-diff tests/screenshots --open --threshold 0.03 # <= 3% is OK | ||
$ npx testcafe-blink-diff tests/screenshots --compare base:actual --open --threshold 0.03 # <= 3% is OK | ||
``` | ||
@@ -44,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23789