API Docs for: 0.9.1
Show:

SpecReporter Class

Constructor

SpecReporter

()

Methods

_spacing

(
  • obj
)
String private

Spacing for object

Parameters:

Returns:

complete

()

Reporting is completed

console

(
  • id
  • msgType
  • msg
)

Sends data to stdout

Parameters:

getConfiguration

() Object

Gets the configuration supplied

Returns:

getContainer

() ReportContainer

Gets the container

Returns:

getOptions

() Object

Gets the options

Returns:

getOutput

() String

Gets the collected output

Returns:

getPath

() String

Output path

Returns:

getType

() String

Gets the type of reporter

Returns:

initialize

()

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:16

Initializes the instance

itemData

(
  • id
  • json
)

Called when any item has custom data

Parameters:

itemMessage

(
  • id
  • message
)

Called when any item has a custom message

Parameters:

output

(
  • data
)

Outputs data to stdout

Parameters:

shouldOutput

() Boolean

Should the reporter output the data?

Returns:

shouldShowProgress

() Boolean

Should the reporter show progress?

Returns:

start

()

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:46

Called when reporting starts

stop

()

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:57

Called when reporting stops

suiteEnd

(
  • id
)

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:81

Called when suite ends

Parameters:

suiteStart

(
  • id
  • parentId
  • suiteName
)

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:68

Called when suite starts

Parameters:

testError

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

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:114

Called when test has an error

Parameters:

testFailed

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

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:92

Called when test fails

Parameters:

testIncomplete

(
  • id
)

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:198

Called when test is incomplete

Parameters:

testPassed

(
  • id
)

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:136

Called when test has passed

Parameters:

testSkipped

(
  • id
  • [reason]
)

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:177

Called when test is skipped

Parameters:

testStart

(
  • id
  • parentId
  • testName
)

Called when test starts

Parameters:

testUndefined

(
  • id
)

Inherited from AbstractReporter but overwritten in lib/reporter/spec.js:157

Called when test is undefined

Parameters:

toString

() String

Exports data to a string

Returns:

useColor

() Boolean

Should reporter use color?

Returns:

write

()

Writes the data into an output file