Discover and read the best of Twitter Threads about #ComsWasm

Most recents (1)

Frustrated by verbose #ComsWasm smart contract tests?

Today I would like to introduce to the @cosmos community the Robot Pattern for stable, readable, and maintainable tests.

If you are a developer, you don't want to miss this one, I promise 😎

Let's dive in! 🧵

1/
From testing 101:

The QA team checks app functionality via the UI. The tester doesn’t care how the application is written as he just interfaces with the UI.

In case of smart contracts, the tester checks at the frontend to interact with the contracts. #smartcontract #testing

2/
So for the tester to check say an asset swap on a #DeFi protocol, it performs the following actions:

• Visit the frontend
• Go to swap page
• Connect wallet
• Select Asset X from the dropdown
• Enter amount of Asset X to swap
• Click Swap
• Verify swap was successful

3/
Read 17 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!