cucumber / cucumber/vscode

Not working in a Cypress project

Open
#293 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
88
Forks
33
PR merge metrics
No merged PRs in 30d

Description

### 👓 What did you see?

This is the directory structure:

Image

And so in the workspace settings, I have added:

```json
"cucumber.features": [
"cypress/e2e/**/*.feature",
],
"cucumber.glue": [
"cypress/support/step_definitions/**/*.ts",
],
```

And yet, all steps in the `.feature` files are undefined.

### ✅ What did you expect to see?

I would expect to see three things in a scenario like this:

1. Where did it not find the step definitions, e.g. where did it look?
2. If files where found, is there some syntax that it could not understand?
3. Anything else that is *actually* wrong, not just "nope, can't do"

The point is I'd expect the extension to give all the juicy details, instead of just magically not working.

### 📦 Which tool/library version are you using?

Node.js 22.21.0
Cypress 13.13.3
Cypress-cucumber-preprocessor 23.2.1 (by badeball)

I don't know which Cucumber version - whatever Cypress comes with. It's not overridden or anything.

### 🔬 How could we reproduce it?

I honestly don't know how Cypress was initially installed in this project - not by me, this project is not a one-man-show :)

But I think the directories are the important bit here. And maybe (but not super likely) the fact that this is a monorepo.

### 📚 Any additional context?

What path are the configured directories relative to? Even in the documentation, and in the default values, it lists relative paths. Relative to what?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.