question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Cypress module api [question]

See original GitHub issue

Percy tutorial shows that running Percy requires wrapping cypress run command in percy exec command.

I am however using module api to run my Cypress tests. Is there any way to use Percy with this method of running Cypress?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
filiphriccommented, Mar 20, 2021

@pascalism I run percy & cypress with module API like this: percy exec -- cypress.js where cypress.js is the name of the module file

0reactions
Robdel12commented, Mar 18, 2021

It’s not possible yet (look out for this SDK to be upgraded: https://docs.percy.io/docs/migrating-to-percy-cli#current-migration-status)

Once this SDK uses the new SDK tool chain (@percy/cli and friends) this will be possible with @percy/core. For example this is how Google AMP uses core: https://github.com/ampproject/amphtml/blob/4e459d08acbe04528ffefe1a63665edf3a867470/build-system/tasks/visual-diff/index.js#L164-L175

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module API - Cypress Documentation
Runs Cypress tests via Node.js and resolve with all test results. See the Cypress Module API recipe. // e2e-run-tests.js const cypress = require('cypress') ......
Read more >
Hack Together - How to test APIs using Cypress - YouTube
Cypress Course 2022 in 2 hours | Cypress Automation tutorial · Hack Together - Add magic to your team lunch with Meta- API...
Read more >
Test grepping in Cypress using Module API - Filip Hric
Sometimes you want to run just a subset of your tests. With Module API, you can achieve just that. Showcasing how you can...
Read more >
Wrap Cypress Using NPM Module API - Gleb Bahmutov
When cypress.run executes, it resolves with an object that contains detailed information about all tests that Cypress executed or skipped.
Read more >
How to use Cypress Module API with Next.js and Vercel
I have a web app made with Next.js deployed to Vercel, and I am trying to add some nightly tests using the Cypress...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found