I am new to hyper-ledger fabric, after writing chaincode I don’t like to deploy and test every time. Is there any way to test the chaincode logic without deploying..
To test the chaincode, in the directory containing the chaincode simply do
go test
See chaincode_example02_test.go for an example of how to write tests for chaincode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With