March 2019
Intermediate to advanced
636 pages
27h 50m
English
We are now ready to run our tests! The go test command will execute all tests found in the tradeWorkflow_test.go file. The file contains a long series of tests that verify the functions defined in our workflow.
Let's now run the tests in the terminal with the following command:
$ cd $GOPATH/src/trade-finance-logistics/chaincode/src/github.com/trade_workflow_v1 $ go test
The preceding command should generate the following output:
Initializing Trade Workflow Exporter: LumberInc Exporter's Bank: LumberBank Exporter's Account Balance: 100000 Importer: WoodenToys Importer's Bank: ToyBank Importer's Account Balance: 200000 Carrier: UniversalFreight Regulatory Authority: ForestryDepartment ... Amount paid thus far for trade 2ks89j9 ...
Read now
Unlock full access