@applitools/eyes.cypress
Advanced tools
Comparing version 3.4.1 to 3.4.2
v3.4.1 / 2019-01-30 | ||
=================== | ||
* 3.4.1 | ||
* 3.4.0 - added failCypressOnDiff to README | ||
v3.3.26 / 2019-01-30 | ||
==================== | ||
* 3.3.26 | ||
* Converting env variables of false and 0 to booleans (once eyes-common major is published we can use that). | ||
* Renamed flag to not fail Cypress to ^CilCypressOnDiff | ||
* changelog 3.3.25 | ||
v3.3.25 / 2019-01-29 | ||
@@ -3,0 +17,0 @@ ==================== |
{ | ||
"name": "@applitools/eyes.cypress", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -318,4 +318,4 @@ # Eyes.Cypress | ||
| `isDisabled` | false | If true, all calls to Eyes.Cypress commands will be silently ignored. | | ||
| `failCypressOnDiff` | true | If false, Cypress will not fail once an eyes visual test fails (either for a visual difference or an Eyes Error). | ||
| `tapFilePath` | undefined | Dir path of a results file. If set then a tap file with the test results would be saved to this location.| | ||
| `failCypressOnDiff` | true | If true, then the Cypress test fails if an eyes visual test fails. If false and an eyes test fails, then the Cypress test does not fail. | ||
| `tapDirPath` | undefined | Directory path of a results file. If set, then a [TAP](https://en.wikipedia.org/wiki/Test_Anything_Protocol#Specification) file with the name `eyes.tap` is created in this directory, containing the Eyes test results.| | ||
@@ -322,0 +322,0 @@ ### Method 1: Arguments for `cy.eyesOpen` |
@@ -8,6 +8,6 @@ const {TestResultsFormatter} = require('@applitools/eyes-sdk-core'); | ||
const makeHandleBatchResultsFile = config => { | ||
if (!config.tapFilePath) return () => {}; | ||
if (!config.tapDirPath) return () => {}; | ||
return async function handleBatchResultsFile(results) { | ||
const formatter = new TestResultsFormatter(results); | ||
const tapFilePath = resolve(config.tapFilePath, 'eyes.tap'); | ||
const tapFilePath = resolve(config.tapDirPath, 'eyes.tap'); | ||
await writeFile(tapFilePath, formatter.asHierarchicTAPString(false, true)); | ||
@@ -14,0 +14,0 @@ }; |
@@ -17,3 +17,3 @@ 'use strict'; | ||
{concurrency: 1, agentId}, | ||
ConfigUtils.getConfig({configParams: [...configParams, 'failCypressOnDiff', 'tapFilePath']}), | ||
ConfigUtils.getConfig({configParams: [...configParams, 'failCypressOnDiff', 'tapDirPath']}), | ||
); | ||
@@ -20,0 +20,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
88066