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
orcypress.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:
- Created 6 years ago
- Reactions:1
- Comments:12 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released in
3.0.0
.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