How to Test a Business Network Definition
After you have deployed a business network definition it is often useful to run a "smoke test" to ensure that the deployment was successful. The
composer CLI exposes several commands for running such smoke tests.
In addition you can write full-blown system tests using Docker Compose and Chai, that start a Fabric, deploy your business network definition and then programmatically create assets, submit transactions and inspect the state of asset registries.
composer-client module and the
BusinessNetworkConnection API to add assets to an asset registry.
composer network list
composer transaction submit
You may choose to add skeletal tests to your application using the
composer generator tests command.