Comments (11)
I noticed that does not work either. Tried with relative paths and realpaths using path.resolve()
to no avail.
ERROR: ENOENT: no such file or directory, realpath '/home/attila/example/app/test/features/step_definitions/**/*.js'
My guess is that the pattern is not matched properly. One workaround is to omit the require in cucumberOpts
and stick all step definition files to their default location, i.e features/step_definitions
and cucumber will pick them up.
from wdio-cucumber-framework.
Seems to me that * in path is not working.
from wdio-cucumber-framework.
Have the same problem here.
from wdio-cucumber-framework.
+1 this is really irritating
from wdio-cucumber-framework.
FWIW I've done a workaround for the time being that aggregates files together using an index.steps.js
file
var world = require('../support/world');
var steps = [
require('./action.steps'),
require('./form.steps'),
require('./navigation'),
require('./verify.steps')
];
module.exports = function() {
this.World = world;
steps.forEach(function(step) {
step.call(this);
}.bind(this));
};
from wdio-cucumber-framework.
Removing the asterisk worked for me -
require: ['./features/step-definitions/']
from wdio-cucumber-framework.
@webmagit Really? I (wrongly?) assumed the paths were globbed?
from wdio-cucumber-framework.
@mike-suggitt I just propagate the values to Cucumber directly so if Cucumber .. so might be that Cucumber handles it differently
from wdio-cucumber-framework.
I (wrongly?) assumed the paths were globbed?
Revisit issue and yes seems like cucumber handles this differently. I don't think it is a good idea to change this behavior as it would require to add another dependency. I added a note to the parameter description.
from wdio-cucumber-framework.
Referencing the directory doesn't work for me. Gives:
ERROR: Cannot find module './src/test/features/step_definitions'
Update: Looks like this is reported in #79
from wdio-cucumber-framework.
the asterisk worked for me on Mac system removing asterisk worked on windows system. Not sure why!
from wdio-cucumber-framework.
Related Issues (20)
- Doesn't build properly on Node11 HOT 1
- How to use setWorldConstructor HOT 2
- how to access uri from beforeFeature() after version 1.1.1 HOT 2
- Can you get tags from configuration file in beforeScenario function HOT 2
- Skipped scenarios - if one fails the rest got skipped HOT 8
- "Error in onReload hook" using reload method on update framework version HOT 5
- Running scenarios with line number throw "file not found" error HOT 14
- before hook is not executed in wdio.conf.js HOT 1
- tags at Example causing exception HOT 9
- 'Socket hang up' errors started occurring consistently (but intermittently on different tests/steps) after 8-11 scenarios in a wdio-cucumber-framework feature file
- Unable to get Scenario result in cucumber hooks afterScenario HOT 1
- On step timeout neither the onError hook nor the step retries work HOT 2
- When will wdio-cucumber-framework migrate wdio V4 to V5? HOT 1
- globbing in --spec causes "more than one config file specified" error HOT 6
- cucumberOpts.strict doesn't work
- session not created: Unable to create new service: ChromeDriverService HOT 13
- before() in wdio.conf.js is not executing the spec file which I would like to execute before all other spec files. HOT 1
- CucumberOpts.compiler doesn't handle compiler options correctly
- Question: How do you use the build in Reporter? HOT 4
- Fibers@4 for Node12 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wdio-cucumber-framework.