Nx: Cypress Builder: Support for Percy.IO

Created on 20 Aug 2020  路  3Comments  路  Source: nrwl/nx

Description

Percy.io requires that Cypress is wrapped inside a Percy command, see step 4 here. The NRWL Cypress builder does not support this, as it is running Cypress directly here.

Motivation

Percy.IO is an amazing tool for visual tests.

Suggested Implementation

Provide a way to wrap the Cypress execution in another process.

Alternate Implementations

Have a config flag in the builder "isPercy" which will make sure it's run inside the Percy process.

testing tools feature

Most helpful comment

We are doing this

"affected:e2e": "percy exec -- nx affected:e2e

All 3 comments

We (my Team and I) are really interested in percy. Should I create a PR?

We are interested in this feature too. @bcabanes, how can we achieve this? Could we just execute it as bash here, and return the status code?
https://github.com/nrwl/nx/blob/41ad2654266926d53ad008f45b13b5ad7cc697d8/packages/cypress/src/builders/cypress/cypress.impl.ts#L191

We are doing this

"affected:e2e": "percy exec -- nx affected:e2e

Was this page helpful?
0 / 5 - 0 ratings