Publication

FabricUnit: A Framework for Faster Execution of Unit Tests on Hyperledger Fabric

Shashank Motepalli / Patrícia Vilain / Hans-Arno Jacobsen

2020 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2020 · Conference Paper

Read paper

Enterprises and Governments, alike, are leveraging distributed ledger technologies to solve traditional problems across domains. They consider private blockchains such as Hyperledger Fabric as a safe bet for the obvious security and privacy reasons. However, the tools for software reliability are not yet matured. In this work, we propose FabricUnit, a unit testing framework for Hyperledger Fabric clients. FabricUnit identifies the safe methods that do not alter the state and re-uses the setup execution (deleting any stale data and reinitializes the data). Our experiment shows a reduction of approximately 30% in the tests execution time.