
Generating Unit Tests from Kode Sherpa
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



