Posts

Showing posts with the label testingsmartcontractsusingbrownie

Testing Deploy.py Script Using Brownie: A Full Analysis

Image
In this post, we will complete testing our deploy.py script using Brownie in more detail so that we can see if there is any problem at all. And if there is, we can analyze it in more detail. This kind of detailed test and code analysis becomes handy, especially when the code is too long and complex that we cannot so easily understand where the unexpected result originates from. Detailed Testing Deploy.py Using Brownie For more detailed testing, we can write in the terminal: Coppied to clipboard. brownie test -k Which in our case will be: Coppied to clipboard. brownie test -k test_updating_storage And the result will be: Coppied to clipboard. Brownie v1.18.1 - Python development framework for Ethereum ===================================================== test session starts ===================================================== platform linux -- Python 3.8.10, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 rootdir: /hom...