How to achieve test coverage choice 100%? - Has been solved
Hi DAML’ers,
I have solved this “silly” question 
Thanks all.
Hi DAML’ers
I just finished my very first DAML code. That was very fun!
Now, I need to test my code. I had create a test scenario and run this command :
daml test --show-coverage --all
However, it always returns “test coverage: templates 100%, choices 89%”
So, how to make the coverage choice becomes 100% ?
because I think I have added all of the choices in test scenario.
Hi @nr185, well done 
If you can, would you be able to briefly show how you fixed it? That way others who may happen upon the something similar, can see a potential method to help themselves.
Yes, to get 100% test coverage both in template creation and choice execution, we need to ensure
- all templates have been created
- all choices have been executed both in exerciseCmd and archiveCmd.
Thus, when you run this command :
daml test --show-coverage --all
the result will be :
test coverage: templates 100%, choices 100%
templates never created:
choices never executed:
Yah, that’s all what I did yesterday. Have a great weekend ! 
Thank you for adding that 