You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a good start, but I have a use case where I need to ignore any branches between two directives, not just the 'next' one. This is for internal module definitions where the code always runs, but only once and never during a unit test. In my case, a code-gen tool is generating the nested internal modules and so I don't have a chance to add the directives for each nested module. Here is the output of the tool:
varapp;(function(app){(function(common){common.Foo=(functionFoo(){this.foo='foo';}returnFoo;}());// need an option something like this:/* istanbul ignore start */})(app.common||(app.common={}));})(app||app={}));/* istanbul ignore end */
This should result in any code between the start and stop directives not to count towards statement or branch coverage percentages in the report and should be grayed out in the colorized report as in issue 15.
The text was updated successfully, but these errors were encountered:
Impossible to do this the way istanbul is designed since it looks at the AST and not at the source code. What I have implemented is pretty much what you can get.
From this issue:
#15
This is a good start, but I have a use case where I need to ignore any branches between two directives, not just the 'next' one. This is for internal module definitions where the code always runs, but only once and never during a unit test. In my case, a code-gen tool is generating the nested internal modules and so I don't have a chance to add the directives for each nested module. Here is the output of the tool:
This should result in any code between the start and stop directives not to count towards statement or branch coverage percentages in the report and should be grayed out in the colorized report as in issue 15.
The text was updated successfully, but these errors were encountered: