Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report: match all occurrences instead of the first one #161

Open
camshaft opened this issue Jan 23, 2025 · 0 comments
Open

report: match all occurrences instead of the first one #161

camshaft opened this issue Jan 23, 2025 · 0 comments
Labels
command:report enhancement New feature or request

Comments

@camshaft
Copy link
Member

Problem

Currently when citing a text that appears multiple times in a section, it will only consider the first occurrence as covered:

//= my-spec.md#section-1
//# Text is here.
# Section 1

Text is here.
Text is here. <- not covered

Solution

Without any way to disambiguate between which text the implementation is referring to, text matching should instead be applied for all occurrences of that text. Later, we could also introduce a mechanism to specify which, if needed:

//= my-spec.md#section-1
//= occurrence=2
//# Text is here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command:report enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant