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

Write unit tests for untested parts of git-bundle-server #46

Open
1 task done
vdye opened this issue Jan 24, 2023 · 3 comments
Open
1 task done

Write unit tests for untested parts of git-bundle-server #46

vdye opened this issue Jan 24, 2023 · 3 comments
Assignees

Comments

@vdye
Copy link
Collaborator

vdye commented Jan 24, 2023

This is likely to be a long-running issue where we incrementally add unit tests for everything unit test-able in the repository (which will be almost everything). This should include:

  • All git-bundle-server subcommands (mock the contents of the dependency container)
  • All interfaced types that do not directly interact with the system (e.g., we can test RepoProvider because all filesystem accesses are done in mocked types, but can't test CommandExecutor).
  • Helper functions (less important)

Progress

@vdye vdye self-assigned this Jan 24, 2023
@vdye vdye removed their assignment Jan 24, 2023
@vdye vdye transferred this issue from another repository Apr 27, 2023
@derrickstolee
Copy link
Collaborator

@vdye I wonder if this should be made an expectation of new work in git-bundle-server: create unit tests whenever appropriate, especially before changing behavior that could be covered by unit tests.

This would allow us to remove this as an item and instead make it a practice to improve unit testing as we adjust things based on customer needs. What do you think?

@vdye
Copy link
Collaborator Author

vdye commented Jun 6, 2023

I think there's value in backfilling tests for some of the types/functions we have already (for example, we don't have any unit tests of the subcommands, even though they should generally be testable). Without even a basic framework for these types, filling in the tests alongside functionality changes could create an heavy burden on someone making an otherwise small change.

Feel free to unassign yourself if you'd like, but I do plan to knock this out at some point in the near(-ish, within the next couple months) future.

@derrickstolee
Copy link
Collaborator

... I do plan to knock this out at some point in the near(-ish, within the next couple months) future.

That's enough reason to keep it around. I will remove myself as I don't anticipate having time to help in this direction in the short term.

@derrickstolee derrickstolee removed their assignment Jun 7, 2023
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

No branches or pull requests

2 participants