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

docs: Add section on running tests to contributing guide #953

Merged
merged 4 commits into from
Dec 18, 2023

Conversation

MikeGoldsmith
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith commented Dec 15, 2023

Which problem is this PR solving?

Adds a section to the contributing guide to show to execute tests locally.

Short description of the changes

  • Add test section to CONTRIBUTING.md
  • Add asdf .tools-version file that sets the expected golang version to 1.21.1

@MikeGoldsmith MikeGoldsmith self-assigned this Dec 15, 2023
@MikeGoldsmith MikeGoldsmith requested a review from a team as a code owner December 15, 2023 11:46
CONTRIBUTING.md Outdated

Refinery tests require a local instance of Redis to execute. A simple way to run this is using Docker:

`docker run --name refinery-redis -p 6379:6379 -d redis`
Copy link
Contributor

Choose a reason for hiding this comment

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

This assumes that you have docker installed and the daemon is running, and that you've got an image for redis. And you get exactly the same result as if you had installed and run redis. Like, docker didn't actually do anything for you here and added a bunch of friction to the process.

Personally, I installed redis using brew, and it runs in the background all the time. Or I could run it on demand.

I'm not anti-docker, but I do think it adds friction, and I'm not sure what it brings to the table here. In any case, if we're going to say this, we should probably also include how to get an appropriate image.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, if you feel we don't need to hand-hold readers with getting redis setup I'm good to remove the docker suggestion.

Do you feel there's value in demonstrating how tests are expected to be run, with the caveat of requiring redis be available?

Copy link
Contributor

Choose a reason for hiding this comment

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

I do think there's value in demonstrating testing, and I think it's worth telling people they need redis. I was only questioning why you were running redis in docker instead of standalone.

Maybe we just say "Tests require a local installation of redis. See here for how to get it running. "

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to refer to external docs for installing redis 👍🏻

Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

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

Thank you.

@MikeGoldsmith MikeGoldsmith merged commit 5eda8fb into main Dec 18, 2023
3 checks passed
@MikeGoldsmith MikeGoldsmith deleted the mike/execute-tests branch December 18, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants