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.

Use cucumber preprocessor only for UI tests ?

See original GitHub issue

I’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

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:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
badeballcommented, Oct 12, 2022

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.

0reactions
kiran-epiccommented, Oct 12, 2022

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 ?

Read more comments on GitHub >

github_iconTop 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 >

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