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

godog steps linting #194

Open
0xmichalis opened this issue Oct 18, 2019 · 1 comment
Open

godog steps linting #194

0xmichalis opened this issue Oct 18, 2019 · 1 comment

Comments

@0xmichalis
Copy link

Is there any easy way to lint source code to catch duplicate godog steps? We have been bitten a couple of times because godog matches steps defined in golang to features files and developers copy/paste golang steps across tests thinking the receiver defined in the new step will be used when it's the receiver in the step that godog matches first that is actually going to be used.

@l3pp4rd
Copy link
Member

l3pp4rd commented Oct 21, 2019

Hi, at the moment godog just finds the first match. probably we could use strict mode to fail with an error in case if same definition signature is detected

@l3pp4rd l3pp4rd added the P3 label Oct 21, 2019
@lonnblad lonnblad removed the P3 label Jun 23, 2020
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

No branches or pull requests

3 participants