-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
When using --profile dev with cucumber-js, it fails with error:
Error: Requested profile "dev" doesn't exist
Configuration Structure
Current cucumber.cjs:
const baseConfig = require("@deepracticex/cucumber-config");
module.exports = {
default: {
...baseConfig,
paths: ["features/**/*.feature"],
import: ["tests/e2e/**/*.steps.ts", "tests/e2e/support/**/*.ts"],
},
};Where baseConfig contains:
{
formatOptions: { snippetInterface: "async-await" },
format: [...],
parallel: 2,
profiles: {
dev: { format: [...], parallel: 1, failFast: true },
ci: { format: [...], parallel: 4, retry: 1 }
}
}Issue
The profiles from baseConfig are nested under default, so cucumber looks for default.profiles.dev but the actual structure becomes:
{
default: {
profiles: {
dev: {...}
}
}
}
This makes profiles inaccessible when using --profile dev flag.
Workaround
Running tests without profile works:
pnpm test # Works
pnpm test:dev --profile dev # FailsAffected Packages
- apps/cli
- packages/logger
Expected Behavior
Profiles should be accessible when specified with --profile flag, similar to how it works in standard cucumber configurations.
Potential Solutions
- Move profiles to top level outside of default wrapper
- Find correct cucumber configuration structure for profiles with default wrapper
- Update baseConfig to export profiles separately
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working