Using bulloak
to generate test contracts from tree
#111
Replies: 5 comments 3 replies
-
Will review later. Just a tip - you can use |
Beta Was this translation helpful? Give feedback.
-
Reviewed now.
The automation benefits are greater than the (slight) decrease in developer experience. |
Beta Was this translation helpful? Give feedback.
-
I just read this discussion, and I am of the opinion that it doesn’t decrease the DX. But, the only problem I see is with the last test name, which doesn’t include the function name |
Beta Was this translation helpful? Give feedback.
-
I suppose we all have agreed to it. Should I go ahead and refactor tests to follow bulloak? |
Beta Was this translation helpful? Give feedback.
-
yeah #132 |
Beta Was this translation helpful? Give feedback.
-
Since there has been an ongoing discussion on using
bulloak
in slack, I decided to give it a go today. Bulloak uses branch descriptions to generate function names, so I decided to keep the description as minimum as possible to prevent it from creating long names.As an example, I refactored the following tree:
into
which generated the following test
Click to expand test contract
I think It does decreases the developer experience but at the same time, it makes tests generation and check automated by using
bulloak
commands.Wdyt @sablier-labs/solidity? Does shortening the tree, like above, look good?
Beta Was this translation helpful? Give feedback.
All reactions