Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step definitions/glue files not found on macOS #100

Closed
LewisCraik opened this issue Aug 24, 2022 · 1 comment
Closed

Step definitions/glue files not found on macOS #100

LewisCraik opened this issue Aug 24, 2022 · 1 comment

Comments

@LewisCraik
Copy link

👓 What did you see?

I have one feature file duckduckgo.feature and one step definition file duckduckgo.js both located in the cypress/e2e folder. My plugin settings are as below:

{
  "cucumber.features": [
    "cypress/e2e/*.feature"
  ],
  "cucumber.glue": [
    "cypress/e2e/*.js"
  ]
}

However the .feature file is recognised, but the .js file is not. This is the output:

[Info  - 4:27:56 PM] Registering request handler for workspace/didChangeConfiguration failed.
[Info  - 4:27:56 PM] Client does not support client/registerCapability. This is OK.
[Info  - 4:27:56 PM] Cucumber Language Server 0.12.11 initialized
[Info  - 4:27:56 PM] Scheduling reindexing in 3000 ms
[Info  - 4:27:56 PM] Reindexing...
[Info  - 4:27:56 PM] * Found 1 feature file(s) in ["cypress/e2e/*.feature"]
[Info  - 4:27:56 PM] * Found 3 steps in those feature files
[Info  - 4:27:56 PM] * Found 0 glue file(s) in ["cypress/e2e/*.js"]
[Info  - 4:27:56 PM] * Found 0 parameter types in those glue files
[Info  - 4:27:56 PM] * Found 0 step definitions in those glue files
[Info  - 4:27:56 PM] * Built 3 suggestions for auto complete
[Info  - 4:27:56 PM] Unable to generate step definition. Please create one first manually.
[Info  - 4:27:56 PM] Unable to generate step definition. Please create one first manually.
[Info  - 4:27:57 PM] Unable to generate step definition. Please create one first manually.
[Info  - 4:27:59 PM] Reindexing...
[Info  - 4:27:59 PM] * Found 1 feature file(s) in ["cypress/e2e/*.feature"]
[Info  - 4:27:59 PM] * Found 3 steps in those feature files
[Info  - 4:27:59 PM] * Found 0 glue file(s) in ["cypress/e2e/*.js"]
[Info  - 4:27:59 PM] * Found 0 parameter types in those glue files
[Info  - 4:27:59 PM] * Found 0 step definitions in those glue files
[Info  - 4:27:59 PM] * Built 3 suggestions for auto complete
[Info  - 4:27:59 PM] Unable to generate step definition. Please create one first manually.
[Info  - 4:27:59 PM] Unable to generate step definition. Please create one first manually.

✅ What did you expect to see?

I would have expected the .js file to be seen and the step definitions to be recognised.

📦 Which tool/library version are you using?

I am using Cypress v10.6 with cypress-cucumber-preprocessor v12.1, VSCode v1.70.2 and plugin version v1.2.8. I have noticed this on earlier versions of Cypress and the Cypress Cucumber Preprocessor too.

🔬 How could we reproduce it?

Steps to reproduce the behavior:

  1. Set up a Cypress project.
  2. Ensure Cucumber plug in settings are pointing to the location of the files to be created.
  3. Add a feature file.
  4. Add a JavaScript step definitions file to define the steps in the feature file.
  5. Plugin should recognise glue file, but doesn't.

📚 Any additional context?

I am on an M1 Mac


This text was originally generated from a template, then edited by hand. You can modify the template here.

@aslakhellesoy
Copy link
Contributor

JavaScript is not supported. You can contribute support if you want. See cucumber/language-service#42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants