cucumber / godog

Cucumber for golang
MIT License
2.3k stars 250 forks source link

godog steps linting #194

Open 0xmichalis opened 4 years ago

0xmichalis commented 4 years ago

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 commented 4 years ago

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