title: How can I run test on Hyperledger Fabric code?
body: <p>I'm sorry to interrupt you guys, but I wish to know how can I run the Hyperledger Fabric code originally.</p>
  
  <p>I download all the Go, Docker, Docker composer, VSCode and those plugins for Go.
  And when I using <code>go test consensus_test.go</code> in <code>/orderer/solo</code>.</p>
  
  <p>It will give me these answer, so how can I run these code? Thank you.</p>
  
  <p><img src="https://i.stack.imgur.com/SFCyB.png" alt=""></p>
  
  <pre><code>$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$
  </code></pre>