cucumber / cucumber/language-server

Print existing steps and step definitions

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
:zap: enhancement
Dominant language
TypeScript
Stars
56
Forks
35
Avg merge
6h 26m
Merged PRs (30d)
1

Description

### 🤔 What's the problem you're trying to solve?

Get a list of all step definitions and steps that match these step definitions.

### ✨ What's your proposed solution?

List all the steps and step definitions:

npx @cucumber/language-server --list

* I have {int} cuke(s) # features/step_definitions/foo.ts:43
* I have 3 cukes # features/a.feature:32
* I have 1 cuke # features/b.feature:12
* /I eat (\d+) cukes/ # features/step_definitions/foo.ts:15
* I eat 3 cukes # features/a.feature:11

### ⛏ Have you considered any alternatives or workarounds?

This is implemented in the `usage` formatter in various Cucumber implementations. By implementing it here we can remove this from all Cucumbers.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.