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

tests: expand test coverage #86

Open
Anomalocaridid opened this issue Oct 15, 2024 · 0 comments
Open

tests: expand test coverage #86

Anomalocaridid opened this issue Oct 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Anomalocaridid
Copy link
Owner

As more and more functionality is added, and refactoring is performed, it makes it increasingly likely that untested code will eventually contain bugs.

Currently, one of the main obstacles to having as complete test coverage as is feasible is testing code that runs external commands or relies on some external state.

Fortunately, tools exist for this purpose, they just need to be implemented:

  • assert_cmd seems promising for integration testing.
  • insta seems like a worthwhile replacement for goldie, which is currently used for golden tests.
  • test-case seems helpful for generating parametrized test cases
  • mockall may also be useful
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant