微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

一些松露测试未执行

如何解决一些松露测试未执行

我的一些松露测试似乎没有执行。编译,一切正常。我也没有收到任何错误消息。

当我通过一本书学习 dapp 开发时,您可以下载示例代码 right here。 而 here 是对应的书。

我所指的代码Kap12\Kap12_Security_Truffle_Project 中,如果我运行 truffle test,则仅执行部分测试,如果我仅运行未使用 {{ 执行的特定测试,则相同1}}

例如,当我运行 truffle test 时,输出是:

truffle test .\test\TestReentrancy.sol

输出:松露版

Compiling your contracts...
===========================
> Compiling .\contracts\Delegation.sol
> Compiling .\contracts\GasSiphoningWallet.sol
> Compiling .\contracts\GasToken.sol
> Compiling .\contracts\KingOfTheEther.sol
> Compiling .\contracts\Migrations.sol
> Compiling .\contracts\Reentrancy.sol
> Compiling .\contracts\SmuggleEther.sol
> Compiling .\contracts\UnderflowToken.sol
> Compiling .\contracts\Utility.sol
> Compiling .\contracts\GasToken.sol
> Compiling .\contracts\Reentrancy.sol
> Compiling .\contracts\Utility.sol
> Compiling .\test\TestReentrancy.sol
> Artifacts written to C:\Users\KONSTA~1\AppData\Local\Temp\test--15764-W3tQRszemoJS
> Compiled successfully using:
   - solc: 0.5.0+commit.1d4f565a.Emscripten.clang



  0 passing (1ms)

如果其他人可以测试代码是否在他的系统上工作,将会非常有帮助。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。