testiero
ultra-opinionated Solidity testing library
Setup
npm i testiero
Usage
We have a Solidity file called MyContractFile.sol
pragma ^420contract MyContract { //doing stuff here }
In our Javascript we do
const privatekey = processenv"privateKey" // without 0xconst Testiero = const testiero = 'https://ropsten.infura.io/<apiKey>' privateKey const sourceFileString = fs //Compile itconst output = testiero //Gas estimationconst estimates = outputgasEstimatescreationconsole //Deploy using the compile output and passing if needed the constructor arguments arraytestiero