Refactoring Brownie Testing #1212
JohnEMagee
started this conversation in
General
Replies: 2 comments 1 reply
-
Hello @JohnEMagee |
Beta Was this translation helpful? Give feedback.
0 replies
-
This isn’t exactly what I meant.
In rspec/capybara you can set up a ‘before’ action at the top of a file for each test to run…in this case, the contract deployment would only have to be written once and called before each test is run automatically?
My better more complete experience is ruby/rails - python is a bit newer (and more awkward to be honest) to me
… On Mar 6, 2022, at 2:17 PM, Vasiliy Gualoto ***@***.***> wrote:
Hello @JohnEMagee <https://github.com/JohnEMagee>
Yes it can, you can create a python folder an set up the functions you know you are going to use over and over again, and then just import it into your test script.
—
Reply to this email directly, view it on GitHub <#1212 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMIHJS4V5LGZNCLW2ZWPWXTU6UVG3ANCNFSM5QBV6CBQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I come from the ruby on rails / capybara / rspec world, and we don't really like repeating ourselves if we don't have to.
Can repeated action (i.e. deploying the test contract) be extracted out of all tests and set up to execute before all tests?
Beta Was this translation helpful? Give feedback.
All reactions