-
Notifications
You must be signed in to change notification settings - Fork 8
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 golden files below testdata/golden #232
Conversation
1960249
to
90d0a80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding the changes, I have some comments but nothing big.
However, I do have 2 observations:
-
Did you try reupdating the golden files to check if everything is ok? (I'm assuming you did, but it doesn't hurt to ask).
-
We need to maintain consistency between our projects. If we agree on this new structure, this also implies applying these changes to
authd
,adsys
, WSL and so on.
4539434
to
93dd088
Compare
We used to store golden files in: testdata/TopLevelTestName/golden/SubTestName We now store them in: testdata/golden/TopLevelTestName/SubTestName That allows to easily copy/paste the full test name (top-level test name + subtest name) into a `go test --run` command.
The package name is already "golden", so we don't have to mention it again in the exported names.
Avoid duplicating the package name in the struct name but also avoid using the name "options" again which is already used as a parameter name and local variable name in this package.
93dd088
to
85bf882
Compare
Yes, all the golden files are updated.
Right. My proposal is to change the structure for the reason mentioned above. If you or @didrocks (should I tag anyone else?) see any problems with that, I can split off the other changes into a separate PR. If I understood @didrocks correctly during the standup, he also prefers this directory structure. |
Yeah, I think that ought to be 2 PRs, as we discussed in the HO, but that’s ok now. Just ensure there is a Jira card created on moving most of |
Tracked in UDENG-5363 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testing gh/jira reviewers sync.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another test
We used to store golden files in:
We now store them in:
That allows to easily copy/paste the full test name (top-level test name + subtest name) into a
go test --run
command.UDENG-5448