API Docs for: 0.9.1
Show:

PreceptorMessenger Class

Constructor

PreceptorMessenger

()

Methods

_send

(
  • messageType
  • data
  • [options]
)
private

Sends a message

Parameters:

_sendIntro

(
  • [options]
)
private

Sends intro message

Parameters:

getOptions

() Object

Gets the options

Returns:

initialize

()

Initializes the instance

itemData

(
  • id
  • json
  • [options]
)

Item has custom data

Parameters:

itemMessage

(
  • id
  • message
  • [options]
)

Item has a custom message

Parameters:

output

(
  • data
)

Outputs data to stdout

Parameters:

shouldOutput

() Boolean

Should the messages be printed?

Returns:

suiteEnd

(
  • id
  • [options]
)

Suite ends

Parameters:

suiteStart

(
  • id
  • parentId
  • suiteName
  • [options]
)

Suite starts

Parameters:

testError

(
  • id
  • [message]
  • [reason]
  • [options]
)

Test has an error

Parameters:

testFailed

(
  • id
  • [message]
  • [reason]
  • [options]
)

Test fails

Parameters:

testIncomplete

(
  • id
  • [options]
)

Test is incomplete

Parameters:

testPassed

(
  • id
  • [options]
)

Test has passed

Parameters:

testSkipped

(
  • id
  • [reason]
  • [options]
)

Test is skipped

Parameters:

testStart

(
  • id
  • parentId
  • testName
  • [options]
)

Test starts

Parameters:

testUndefined

(
  • id
  • [options]
)

Test is undefined

Parameters:

trigger

(
  • msg
  • [options]
)

Triggers a message

Parameters:

version

(
  • [options]
)

Sends the version as message

Parameters: