From 08807558cbd102ad2a1ea273254aff8e9cf35940 Mon Sep 17 00:00:00 2001 From: Graham Jackson Date: Thu, 23 Aug 2018 01:01:19 -0400 Subject: [PATCH] Updated avodiing common mistakes to include coverage report --- avoiding_common_mistakes.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/avoiding_common_mistakes.md b/avoiding_common_mistakes.md index da02812..afe4f0c 100644 --- a/avoiding_common_mistakes.md +++ b/avoiding_common_mistakes.md @@ -51,4 +51,9 @@ I have mitigated against this risk by: * Not using tx.origin and instead msg.sender -## 8. +## 8. Solid Code Coverage +The blockchain is immutable in the sense that a once approved transaction is going to stay. Since smart contract deployment happens through a transaction, this results in the inability to fix issues quickly. That is why having a reliable set of tests is so crucial. + +I have added a tool called Solidity-Coverage in order to generate a report to understand how extensive my test coverage is for the MediaGallery contract. + +The report for my test coverage can be found here: [a relative link](coverage/contracts/index.html)