Testing frameworks and assertion libraries #6
Replies: 3 comments
-
I am going to start us off by creating an example of spec+testify. Snippet: carvel-dev/imgpkg@f327f9b I created a new file called
Plus:
Minus:
testify is an assertion library that provides the most common assertions like calculating length or equality Plus:
Minus:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
We've had a lot of conversations, explored some examples... Coming back to the Go Standard Library Testing package. I submit that there are features present that we have yet to fully avail ourselves that would satisfy our desire for more maintainable test systems and retain the simplicity this framework brings. They are:
There's some idioms to hatch for cases where we want common per-test-case setup/teardown, but the ingredients to do so (I believe) are present. |
Beta Was this translation helpful? Give feedback.
-
We have been discussing the possibility of using a testing framework as well as an assertion/matching library to make our tests more readable.
The objective of this discussion is to try to converge into a solution that could be implemented in all the carvel suite of tools.
Testing framework options:
Assertion/matching library options:
Above there is an incomplete list of options that we should check out to see if any of them are a good match for our needs.
In order for us to make a decision, we should test out some of these libraries and see some code.
Please feel free to create your own snippet as an example of the usage of any of these libraries and share it here with some pros and cons of each of the libraries.
Beta Was this translation helpful? Give feedback.
All reactions