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.

Easier use of Cypress module API

See original GitHub issue
  • Operating System: Ubuntu 17.10
  • Cypress Version: 2.1.0
  • Browser Version: Chrome 65

Is this a Feature or Bug?

Feature

Current behavior:

  • I am currently working on a internal node_module/lib for usage within our company whose sole purpose is to ensure common settings/structure for all our projects.
  • The Cypress module API is a bit verbose to work with when you are trying to achieve this.

Desired behavior:

  • The options object that cypress.open or cypress.run takes, expects the values to be strings as how it would be passed from command line. I should be able to pass a normal object.
  • Also it keeps creating an empty cypress.json, is it absolutely mandatory for this file to be present.

PS: Also I am a complete beginner in using Cypress, I apologize in advance if some parts/all of this issue is misinformed. I got sold by watching the intro video!! I feel this is THE TOOL for e2e-tests!

Note: I am willing to contribute if needed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
brian-manncommented, May 30, 2018

Released in 3.0.0.

1reaction
SimenBcommented, Mar 16, 2018

Ah, I just came here to report the same thing! Awesome that there’s already a PR up for it.

👍 on avoiding an empty cypress.json as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module API - Cypress Documentation
Module API. You can require Cypress as a node module from your application under test and run Cypress via Node.js. This can be...
Read more >
Wrap Cypress Using NPM Module API - Gleb Bahmutov
Cypress NPM module APICypress test runner has NPM module API that lets you call Cypress programmatically from a Node script.
Read more >
Testing an API with Cypress - CircleCI
Using Cypress for API testing. Because Cypress is a standalone frontend testing tool, it makes HTTP requests on behalf of the web applications...
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 >
Module API: cypress.run is unable to pick a specific test from ...
Cypress 6.2.1 Simple setup: cypress.run({ spec: ... Module API: cypress.run is unable to pick a specific test from within the integration ...
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