InstrumentOptions Class
Object that returns instrumentation options
Constructor
InstrumentOptions
-
config
Parameters:
-
configObjectthe instrumentation part of the config object
Item Index
Methods
baselineFile
()
String
Sets the baseline coverage filename. Used by the instrument command.
Returns:
the name of the baseline coverage file.
compact
()
Boolean
returns if the output should be compact JS. Used by the instrument command.
Returns:
true if the output should be compact
completeCopy
()
Boolean
returns if non-JS files should be copied during instrumentation. Used by the
instrument command.
Returns:
true if non-JS files should be copied
defaultExcludes
()
Boolean
returns if default excludes should be turned on. Used by the cover command.
Returns:
true if default excludes should be turned on
embedSource
()
Boolean
returns if the source should be embedded in the instrumented code. Used by the
instrument command.
Returns:
true if the source should be embedded in the instrumented code
excludes
()
Array
returns an array of fileset patterns that should be excluded for instrumentation.
Used by the instrument and cover commands.
Returns:
an array of fileset patterns that should be excluded for instrumentation.
preserveComments
()
Boolean
returns if comments should be preserved in the generated JS. Used by the
cover and instrument commands.
Returns:
true if comments should be preserved in the generated JS
root
()
String
returns the root directory used by istanbul which is typically the root of the
source tree. Used by the cover and report commands.
Returns:
the root directory used by istanbul.
saveBaseline
()
Boolean
returns if a zero-coverage baseline file should be written as part of
instrumentation. This allows reporting to display numbers for files that have
no tests. Used by the instrument command.
Returns:
true if a baseline coverage file should be written.
variable
()
String
the coverage variable name to use. Used by the instrument command.
Returns:
the coverage variable name to use
