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.

commonPath property doesn't work

See original GitHub issue

I want to change the name of common folder to steps folder;

"cypress-cucumber-preprocessor": {
    "nonGlobalStepDefinitions": true,
    "commonPath" : "cypress/integration/steps",
  }

It doesn’t work

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

3reactions
kkuriatacommented, Apr 5, 2020

Anyone is going to fix that issue? It is impossible to use this plugin with non-default folder structure (especially when you use monorepo like Nx).

2reactions
amadridlarcommented, Nov 28, 2019

I have the same issue, working on the example project https://github.com/TheBrainFamily/cypress-cucumber-example.

I have modified the name of the common steps folder to ‘common-steps’ and the configuration of cypress-cucumber-preprocessor in the package.json like this:

"cypress-cucumber-preprocessor": {
    "nonGlobalStepDefinitions": true,
    "commonPath": "cypress/integration/common-steps"
  }

When I execute the test, this is the error I get:

Error: Cannot find module 'cypress/integration/common-steps/I_see_STRING_in_the_title.js' from 'C:\Users\user\workspace\cypress-cucumber-example\cypress\integration\socialNetworks'

If I let the default folder name and the default value on that property, it works, but changing the name of the common steps folder and modifying the property results on that error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

commonPath property doesn't work · Issue #213 - GitHub
I want to change the name of common folder to steps folder; "cypress-cucumber-preprocessor": { "nonGlobalStepDefinitions": true, "commonPath" ...
Read more >
Macrodef attribute doesnt change its value - Stack Overflow
1 Answer 1 · @{attribute} - can change with every execution of a macrodef · ${property} - are always set and fixed once...
Read more >
pathlib — Object-oriented filesystem paths — Python 3.11.1 ...
Pure path objects provide path-handling operations which don't actually access a filesystem. ... Pure paths provide the following methods and properties:.
Read more >
Common Path Patterns - Inspired Python
Listing all the files in the current directory ... The easiest method is with Path.iterdir : >>> list(Path('/home/inspiredpython/')) [PosixPath('.bashrc'), ...].
Read more >
Known issues for AWS Lake Formation
AWS Lake Formation removes any table property beginning with ... partitions are not under the location set in the parent table, data access...
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