statementContext

<statementContext>

Specifies a statement Context definition. See Using Coverage Contexts for more information.

This element does not support Groovy.

Parameters
Attribute Description Required
name

The name for this context. Must be unique, and not be one of the reserved context names (see Using Coverage Contexts).

Yes.
regexp A Perl 5 Regexp that defines the context. This regexp should match statements you wish to include in this context. Note that when statements are tested against this regexp, whitespace is normalized and comments are ignored. Yes.