FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Generating Unit Tests from Kode Sherpa
How-ToSystems

Generating Unit Tests from Kode Sherpa

via Dev.toSyed Ghufran Hassan2h ago

Continuing from our previous post https://dev.to/syedghufranhassan/introducing-kodesherpa-build-defi-smart-contracts-with-ease-55oo I presented how kode sherpa ease dev's life by generating smart contract based on the prompts with the protocol level questions asked as prompts which generated smart contract based on all the possible scenarios. Now we will get to know that how we can generate the unit test of our smart contract. Based on this, you can see that on right hand side, there is option for generate unit tests. This will then generate tests and based on the contract, will generate the score accordingly. The test tells that 9 out of 45 tests are failing so in the next post we will then analyze the below test generated by Kode Sherpa and then will modify the test and contract accordingly. import hre from " hardhat " ; import { expect } from " chai " ; describe ( " FixedAprSingleTokenStakingPullPayments " , function () { // Ethers (Hardhat 3 network connect) let ethers : any ; // S

Continue reading on Dev.to

Opens in a new tab

Read Full Article
4 views

Related Articles

I Haven’t Written Real Code in 3 Months. My Products Still Ship.
How-To

I Haven’t Written Real Code in 3 Months. My Products Still Ship.

Medium Programming • 3h ago

My Learning Experience with Sorting Algorithms
How-To

My Learning Experience with Sorting Algorithms

Dev.to Tutorial • 5h ago

Stop Building Projects. Start Building Systems.
How-To

Stop Building Projects. Start Building Systems.

Medium Programming • 5h ago

I Learned More in 3 Months Than 3 Years (The System That Actually Works)
How-To

I Learned More in 3 Months Than 3 Years (The System That Actually Works)

Medium Programming • 5h ago

CA 12 - Next Permutation
How-To

CA 12 - Next Permutation

Dev.to • 6h ago

Discover More Articles