-
-
Notifications
You must be signed in to change notification settings - Fork 753
Open
Description
Let's assume we have codecept.conf.js config file in the project root with the following config:
exports.config = {
// other options go here
multiple: {
basic: {
browsers: ['chromium', 'firefox'],
},
},
gherkin: {
features: './features/*.feature',
steps: ['./step_definitions/steps.js'],
}
};When running tests with:
codeceptjs run-multiple --allall specified feature files are executed as expected.
However, when the -c CLI option is explicitly provided:
codeceptjs run-multiple --all -c codecept.conf.jsthe command fails to identify and run the specified glob for the feature files, resulting in 0 features being picked.
Root cause:
The issue occurs due to the usage of path.resolve on paths when a custom configuration file is specified here. This results in invalid input for the globSync command, causing it to fail to resolve the glob patterns correctly here.
Metadata
Metadata
Assignees
Labels
No labels