API Docs for: 0.9.3
Show:

KoboldTask Class

Extends MochaTask
Defined in: lib/task/kobold.js:9

Constructor

KoboldTask

()

Methods

_run

(
  • parentId
)
Promise private

Inherited from AbstractTask but overwritten in lib/task/kobold.js:93

Run the client

Parameters:

Returns:

Promise:

augment

()

Augments the data with default values

getClientDecoratorPlugins

() Object[]

Gets all client-decorator plugins

Returns:

getConfiguration

() Object

Gets the client configuration

Returns:

getCoverageCollector

() Collector

Gets the coverage collector

Returns:

Collector:

getDecorators

() Object[]

Gets the decorator list

Returns:

getFunctions

() Function[]

Gets a list of functions to execute before the tests Mocha Option:

Returns:

getGlobalConfig

() Object

Gets the global configuration

Returns:

getGlobals

() String[]

Gets the list of defined globals Mocha Option: globals

Returns:

getGrep

() String | Boolean

Gets the test filter Mocha Option: grep

Returns:

getLabel

() String

Gets the label of the task

Returns:

getMochaConfiguration

() Object

Inherited from MochaTask but overwritten in lib/task/kobold.js:70

Gets the mocha configuration Overwrite this function if the mocha configuration is found somewhere else.

Returns:

getName

() String

Gets the name of the preceptor task

Returns:

getOptions

() Object

Gets the options

Returns:

getPaths

() String[]

Gets the path of all tests Mocha Option:

Returns:

getPlugins

() Object

Gets all plugins

Returns:

getRecursive

() Boolean

Should the test-search be recursive? Mocha Option: recursive

Returns:

getReporter

() String

Gets the reporter Mocha Option: reporter

Returns:

getReportManager

() ReportManager

Gets the report manager

Returns:

ReportManager:

getRequire

() String[]

List of files to be required before the tests are run Mocha Option: require

Returns:

getSlowThreshold

() Int

Gets the threshold for slow tests Mocha Option: slow

Returns:

Int:

getTaskDecoratorPlugins

() AbstractTaskDecorator[]

Gets all options-decorator plugins

getTaskId

() String

Gets a unique id for the task

Returns:

getTaskPlugin

(
  • name
)
AbstractTask

Gets a specific task plugin

Parameters:

Returns:

getTimeOut

() Int

Gets the threshold for too slow test-suites Mocha Option: timeout

Returns:

Int:

getTitle

() String

Gets the title of the preceptor task

Returns:

getType

() String

Gets the type of the preceptor task

Returns:

getUi

() String

Gets the UI interface ('tdd', 'bdd') Mocha Option: ui

Returns:

inDebug

() Boolean

Is the task in debug-mode?

Returns:

initialize

()

Inherited from AbstractTask but overwritten in lib/task/kobold.js:17

Initializes the instance

isActive

() Boolean

Is the task active?

Returns:

isSuite

() Boolean

Run tasks in a suite?

Returns:

isVerbose

() Boolean

Is the task verbose?

Returns:

run

(
  • parentId
)
Promise

Run the task

Parameters:

Returns:

Promise:

runClient

(
  • parentId
  • clientPath
)
Promise

Runs the client in a forked environment

Parameters:

Returns:

Promise:

setMochaConfiguration

(
  • options
)

Inherited from MochaTask but overwritten in lib/task/kobold.js:81

Sets the mocha configuration Overwrite this function if the mocha configuration is found somewhere else.

Parameters:

shouldBail

() Boolean

Should mocha bail on first error? Mocha Option: bail

Returns:

shouldCheckLeaks

() Boolean

Should mocha check for leaks Mocha Option: check-leaks

Returns:

shouldEchoStdErr

() Boolean

Echo std-err output of child-process?

Returns:

shouldEchoStdOut

() Boolean

Echo std-out output of child-process?

Returns:

shouldFailOnError

() Boolean

Should task fail on error?

Returns:

shouldInvert

() Boolean

Should the test sequence inverted? Mocha Option: invert

Returns:

shouldReport

() Boolean

Should report?

Returns:

shouldSort

() Boolean

Should tests be sorted after gathering and before executing? Mocha Option: sort

Returns:

useAsyncOnly

() Boolean

Gets the reporter Mocha Option: async-only

Returns:

useColors

() Boolean

Should colors be used in output? Mocha Option: colors

Returns:

useInlineDiffs

() Boolean

Output inline diffs Mocha Option: inline-diffs

Returns:

useTimeOuts

() Boolean

Should time-outs be observed? Mocha Option: [no-]timeouts

Returns:

validate

()

Inherited from AbstractTask but overwritten in lib/task/kobold.js:56

Validates the given data