git-ecosystem / git-bundle-server

A web server & management CLI to host Git bundles for use with Git's "bundle URIs" feature
Other
43 stars 20 forks source link

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

Open vdye opened 1 year ago

vdye commented 1 year ago

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:

Progress

derrickstolee commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

... 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.