Skip to content

test(bdd): npm run test:feature -- <files> runs only those features - #64

Merged
alexanderilyin merged 1 commit into
mainfrom
test/feature-script
Oct 7, 2026
Merged

alexanderilyin merged 1 commit into
mainfrom
test/feature-script

Conversation

@alexanderilyin

Copy link
Copy Markdown
Member

npm test -- features/x.feature silently runs the whole suite, because cucumber-js merges command-line paths with cucumber.mjs's features/**/*.feature. I hit this tonight: it started all 140 scenarios on the small cluster.

npm run test:feature -- features/a.feature [features/b.feature] [--parallel 1] runs only those files. Verified with --dry-run: health.feature gives 11 scenarios, not 140, and running it with no file prints a clear error. Documented in testing.md.

🤖 Generated with Claude Code

npm test -- features/x.feature runs the whole suite: cucumber-js merges
command-line paths with cucumber.mjs's features/**/*.feature. On this
cluster that's hours and starves the CI runners. test:feature passes
the files through a config whose paths are exactly those files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: be836c9d-1574-4689-913a-0d08283f2080
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@alexanderilyin
alexanderilyin merged commit 35fc57d into main Oct 7, 2026
9 checks passed
@alexanderilyin
alexanderilyin deleted the test/feature-script branch October 7, 2026 14:29
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

Successfully merging this pull request may close these issues.

1 participant