首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何在Hyperledger Fabric代码上运行测试?

如何在Hyperledger Fabric代码上运行测试?
EN

Stack Overflow用户
提问于 2018-06-10 21:01:37
回答 1查看 182关注 0票数 -1

很抱歉打断你们,但我想知道如何才能运行Hyperledger Fabric代码。

我下载了所有的Go,Docker,Docker composer,VSCode和那些Go插件。当我在/orderer/solo中使用go test consensus_test.go时。

它会给我这些答案,那么我如何运行这些代码呢?谢谢。

$fabric@ubuntu:~/go/src/github.com/hyperledger/fabric/orderer/consensus/solo$ go test consensus_test.go
# command-line-arguments
./consensus_test.go:35:26: undefined: pkgLogID
./consensus_test.go:45:48: undefined: chain
./consensus_test.go:74:8: undefined: newChain
./consensus_test.go:95:11: undefined: New
./consensus_test.go:116:8: undefined: newChain
./consensus_test.go:134:8: undefined: newChain
./consensus_test.go:178:8: undefined: newChain
./consensus_test.go:220:8: undefined: newChain
./consensus_test.go:256:8: undefined: newChain
./consensus_test.go:293:8: undefined: newChain
./consensus_test.go:293:8: too many errors
FAIL    command-line-arguments [build failed]
fabric@ubuntu:~/go/src/github.com/hyperledger/fabric/orderer/consensus/solo$
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50783955

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档