[英]Solidity & Truffle - Automatic test case generate in Solidity and JavaScript, What is the best option? Props and Cons?
I created new ERC-20 token and now, want to add test code.我创建了新的 ERC-20 令牌,现在想要添加测试代码。 Is there any ways to auto-generate test-cases in SOL files?有没有办法在 SOL 文件中自动生成测试用例? And also want to know the way of auto generate test code in Truffle JavaScript framework.也想知道在Truffle JavaScript框架中自动生成测试代码的方式。
I already googled and got some useful libraries but it's not auto generated code.我已经用谷歌搜索并获得了一些有用的库,但它不是自动生成的代码。 (Like mocha or chai ) Please help me. (如mocha或chai )请帮助我。
Thank you谢谢
I used the brownie test framework for testing Vyper smart contracts.我使用了布朗尼测试框架来测试 Vyper 智能合约。 And it can be used for testing solidity smart contracts, too.它也可以用于测试可靠性智能合约。 Refer to this repository.请参阅此存储库。 https://github.com/webelf101/curve-volumegauge https://github.com/webelf101/curve-volumegauge
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.