You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to expose a small utility from Cypress NPM module to parse "cypress run" CLI arguments into options object. Could be used to wrap Cypress and get for example JSON of results (#7532) while running everything the same way as "normal run" does
We already have the code in cli/lib/cli.js, just need to expose it from the NPM module
// user codeconstcypress=require('cypress')construnOptions=cypress.cli.parseRunArguments(process.argv.slice(2))cypress.run(runOptions).then(...)
Then it could eliminate need to prefix cypress run commands like Percy or Happo plugins do right now
The code for this is done in cypress-io/cypress#7798, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
It would be nice to expose a small utility from Cypress NPM module to parse "cypress run" CLI arguments into options object. Could be used to wrap Cypress and get for example JSON of results (#7532) while running everything the same way as "normal run" does
We already have the code in
cli/lib/cli.js
, just need to expose it from the NPM moduleThen it could eliminate need to prefix
cypress run
commands like Percy or Happo plugins do right nowand would allow those plugins to receive the Dashboard URL to link their run to Cypress Dashboard run, like done in https://github.com/cypress-io/github-action#outputs
The text was updated successfully, but these errors were encountered: