Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Your duplication report says 0%. Your Cucumber steps disagree.

说明与用途

CukeDedup 自动检测 Cucumber 步骤中的重复和歧义,减少步骤库膨胀并加速代码审查。

问题

Duplicate or near‑duplicate Cucumber step definitions grow unnoticed, leading to a bloated step library and confusing test maintenance.

结果

CukeDedup reduced duplicate step findings by about 50% after adjusting handler similarity thresholds and improved precision by filtering literal‑only handlers. It also identified cross‑suite ambiguities and performance issues in large jQuery files.

工作流

  • Run npx cuke-dedup . in the repository root
  • CukeDedup scans step definitions, compares step text and handler code
  • It reports findings with source locations, similarity scores, and suggested actions
  • Review the report and refactor or remove duplicate steps
  • Re‑run to confirm no remaining findings

证据

CukeDedup is an open‑source static analyzer that finds duplicate, ambiguous, reusable and unused Cucumber step definitions.

来源

It works with Cucumber.js, Playwright‑BDD, Cypress Cucumber, Jest‑Cucumber and the Vitest Cucumber Plugin, and reads step definitions written in JavaScript or TypeScript.

来源

Zero config. jscpd gets this right: you type jscpd . and you learn something.

来源

When an issue can be isolated, I try to turn it into a minimal regression case in a corpus of expected behavior, with both "must find" and "must not find" cases.

来源

  • 记录日期: 2026-10-14T19:41:07.843Z