cord-network / community

All discussions, new ideas and issues related to https://cord.network and the relevant projects.
2 stars 1 forks source link

[cord] Improve test Coverage in cord #7

Open NiranjanAP opened 5 months ago

NiranjanAP commented 5 months ago

Need comprehensive test coverage to be implemented for all modules of cord. Cover all flows and error conditions

amarts commented 5 months ago

To elaborate more, as of now, when the command cargo test --release --locked --features=runtime-benchmarks --no-fail-fast --verbose --color always --all --all-targets is run in the cord repo, it runs most of the tests. But idea is, there should be a test for making sure every type of error defined in the pallet is covered. That way, developers are sure the expected case for particular Error is met, and is behaving same across.

This helps in upgrade confidence.