You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 forgoldie
, which is currently used for golden tests.test-case
seems helpful for generating parametrized test casesmockall
may also be usefulThe text was updated successfully, but these errors were encountered: