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

Move .feature files next to _test.go files #2165

Open
4 tasks
aaronc opened this issue Feb 12, 2024 · 0 comments
Open
4 tasks

Move .feature files next to _test.go files #2165

aaronc opened this issue Feb 12, 2024 · 0 comments
Labels
good first issue Good for newcomers Status: Nice To Have Type: Style Changes that do not affect the meaning of the code Type: Tests

Comments

@aaronc
Copy link
Member

aaronc commented Feb 12, 2024

Summary

Move Gherkin .feature files into the same folders where the corresponding _test.go files are for better code locality.

Problem Definition

Currently .feature files are in a features/ sub-directory. It's hard to navigate back and forth between the tests and their corresponding .feature files with this structure.

Proposal

Put .feature files in the same directory where the tests actually live so we have a structure like:

  • msg_foo_bar.go
  • msg_foo_bar_test.go
  • msg_foo_bar.feature

This will put all the related gherkin, test, implementation code right next to each other in the file browser.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@aaronc aaronc added good first issue Good for newcomers Status: Nice To Have Type: Style Changes that do not affect the meaning of the code Type: Tests labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Status: Nice To Have Type: Style Changes that do not affect the meaning of the code Type: Tests
Projects
None yet
Development

No branches or pull requests

1 participant