Use cucumber preprocessor only for UI tests ?
See original GitHub issueI’ve setup cypress UI tests using the cucumber pre-processor & it’s working well. Now I am planning to add API tests in the e2e folder which will have {ts,tsx}
extension, but these tests don’t show up in the cypress runner.
I have my project configured using ESBuild as per this doc
I changed the specpattern now to
specPattern: 'cypress/e2e/**/*.{feature,tsx}',
but the tests in the API folder don’t show up in the cypress runner.
The folder structure looks something like this :
- e2e
- UI
- uitest.feature
- API
- apitest.tsx
- UI
Any help is greatly appreciated!
Versions
- Cypress version: 10.10.0
- Preprocessor version: 13.0.2
- Node version: 16.16.0
Checklist
- I’ve read the FAQ.
- I’ve read Instructions for logging issues.
- I’m not using
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Is it possilble to run tests with cypress cucumber preprocessor ...
You can create your UI tests with Cucumber feature files and step definitions and write normal Cypress tests for API testing. Using the ......
Read more >UI Testing with Cypress and Cucumber (JavaScript) - YouTube
How to write end-to-end BDD UI automation tests with Cypress and Cucumber using the Gherkin syntax in JavaScript.0:00 Silence0:05 ...
Read more >How to Run Tests with Cypress and Cucumber | BrowserStack
Step-by-step tutorial on how to run Cypress tests with Cucumber. Integrate Cucumber with Cypress to test website behavior on real browsers.
Read more >Using Cypress with Cucumber to test your app as if you were ...
To start, you'll need to install Cypress and the Cucumber preprocessor: ... Let's first write this test as if we're using just Cypress:...
Read more >cypress-cucumber-preprocessor - npm
The cypress-cucumber-preprocessor gives you the option to bundle all feature files before running the tests, therefore reducing the execution ...
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 Free
Top 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
No and I don’t care to explain any further. Use
@skip
instead, ref. https://github.com/badeball/cypress-cucumber-preprocessor/blob/master/docs/tags.md#smart-tagging.Nopes. ‘not @ignore’ means that it should load all tests which don’t have that tag. I haven’t tagged the non cucumber tests, so they should load just as the other features load ?