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

more script test tweaks and additions #211

Merged
merged 5 commits into from
Dec 22, 2023

Conversation

jakecoffman
Copy link
Member

@jakecoffman jakecoffman commented Dec 22, 2023

Look at db2c290 for the changes to the test before I moved it. After reading the Go source I saw there's a helper script.Program that does what the Dependabot function was doing so I replaced it.

Also noticed that having dependabot_test.go in an outside package was causing it to not rebuild when making changes to the code. Go has built-in caching so it doesn't re-run tests that don't have any changes. Since the test wasn't directly importing any of the modules then it couldn't tell there were changes. Putting it in the package that imports the rest of the project fixes that.

Plus it just makes more sense for it to be next to dependabot.go.

Also added more tests! It's so easy to write these it's kind of fun.

@jakecoffman jakecoffman requested a review from a team as a code owner December 22, 2023 12:50
@jakecoffman jakecoffman enabled auto-merge (squash) December 22, 2023 13:12
@jakecoffman
Copy link
Member Author

Oops, accidentally merge in #212 before I wanted to. Just more tests!

auto-merge was automatically disabled December 22, 2023 15:40

Merge queue setting changed

Copy link
Member

@landongrindheim landongrindheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not great with Go, so please feel free to get a second opinion 😇 In the meantime, it looks good to me 😄

@jakecoffman jakecoffman added this pull request to the merge queue Dec 22, 2023
Merged via the queue into main with commit c7aa6e7 Dec 22, 2023
60 checks passed
@jakecoffman jakecoffman deleted the jakecoffman/final-test-tweaks branch December 22, 2023 16:16
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

Successfully merging this pull request may close these issues.

2 participants