We use istanbul to cover the code in our karma tests. This is great for tracking the coverage of our unit test code in JavaScript. However, this does not track code coverage in our HTML templates.
We have very little logic in our templates, but there is still complexity that we want to track and ensure that we have reviewed our tests correctly. What are the best methods to ensure that all of your HTML templates are properly covered. In our particular case, we use ng-if and ng-switch. We would like all branches to be properly covered.
html angularjs code-coverage istanbul
Andrew Eisenberg
source share