hyperledger / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
421 stars 275 forks source link

Add property based testing through Iroha-python #1536

Open appetrosyan opened 2 years ago

appetrosyan commented 2 years ago

Python is a lightweight interpreted programming language. Property-based API testing techniques in Rust (quickcheck and proptest) are prohibitively expensive. Extensive use of the hypothesis package may allow for faster-paced, broader testing coverage. It may eliminate the need for keeping client_cli, and instead replace it with a fully functional python-based scriptable client. This will also encourage stabilising the API and making changes that break the iroha-python library less frequent.

takemiyamakoto commented 2 years ago

In particular, we should also test to make sure the correct number of blocks are created for a given input.