-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: add the grip unit test crate #32
Conversation
✅ Deploy Preview for contracts-stylus canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO Looks even better 🚀
How about maintaining grip
stuff as external, testing library?
What do you mean 👀? It's currently a separate crate in the workspace. |
I am thinking about having it as a dedicated repository. So our smart contracts will need to have additional dependency, but future developers may only import this dedicated repository instead of fetching the smart contract library. Just as an open idea, no effort needed. |
So you would be able to use It would look like this: [dependencies]
grip = { git = "https://github.com/OpenZeppelin/rust-contracts-stylus.git" } |
Looks awesome! |
So I wanted it to have something to do with Stylus so I searched on google what parts constitute a stylus pen, and the grip seemed appropriate. Do you like it? |
Adds the
#[grip::test]
proc macro to hide implementation details from users and make writing unit tests seamless.