API Docs for:
Show:

Bromine.Tester Class

Defined in: src/Bromine.js:212
Module: Bromine

Test Runner Takes care of registering tests, running them and reporting their results

Constructor

Bromine.Tester

(
  • [options]
)

Defined in src/Bromine.js:212

Parameters:

  • [options] Object optional
    • [exclude] Array optional

      a list of test names to skip

    • [run_only] Array optional

      if provided, will only run tests that are in it

Methods

addEvent

(
  • the
  • a
)
chainable

Inherited from Events but overwritten in bin/bromine.js:290

Adds an event

Parameters:

addEventOnce

(
  • the
  • a
)
chainable

Inherited from Events but overwritten in bin/bromine.js:401

Adds an event for one execution, then removes it

Parameters:

addEvents

(
  • literal
)
chainable

Inherited from Events but overwritten in bin/bromine.js:320

Helper to add multiple events at once

Parameters:

  • literal Object

    object of event types => callbacks

fireEvent

(
  • event
  • arguments
)
chainable

Inherited from Events but overwritten in bin/bromine.js:339

dispatches an event

Parameters:

  • event String

    type

  • arguments Mixed

    to pass with the event

fireLatchedEvent

(
  • the
  • arguments
)
chainable

Inherited from Events but overwritten in bin/bromine.js:423

Fires a latched event

Parameters:

  • the String

    event type

  • arguments Mixed

    to pass with the event

getTests

() Array

Defined in bin/bromine.js:861

returns the tests stack

Returns:

Array: tests

getTests

() Array

Defined in src/Bromine.js:304

returns the tests stack

Returns:

Array: tests

registerReporter

(
  • Bromine.Reporter
)

Defined in bin/bromine.js:940

registers a Test reporter

Parameters:

registerReporter

(
  • Bromine.Reporter
)

Defined in src/Bromine.js:383

registers a Test reporter

Parameters:

registerTest

(
  • name
  • paramaters
)

Defined in src/Bromine.js:273

register a test

Parameters:

registerTest

(
  • name
  • paramaters
)

Defined in bin/bromine.js:830

register a test

Parameters:

removeEvent

(
  • event
  • function
)
chainable

Inherited from Events but overwritten in bin/bromine.js:378

removes a function from an event

Parameters:

reset

()

Defined in src/Bromine.js:323

resets test runner

reset

()

Defined in bin/bromine.js:880

resets test runner

run

()

Defined in src/Bromine.js:313

starts running tests

run

()

Defined in bin/bromine.js:870

starts running tests

setOptions

(
  • options
)
chainable

Inherited from Options but overwritten in bin/bromine.js:506

Parameters:

Properties

bound

Object protected

Inherited from Bind but overwritten in bin/bromine.js:473

collection of bound function

Events

done

Defined in bin/bromine.js:801

fires when all tests are done

Event Payload:

done

Defined in src/Bromine.js:244

fires when all tests are done

Event Payload:

start

Defined in bin/bromine.js:794

fires when a test starts running

Event Payload:

start

Defined in src/Bromine.js:237

fires when a test starts running

Event Payload:

testDone

Defined in bin/bromine.js:807

fires when a test is done successfuly

Event Payload:

testDone

Defined in src/Bromine.js:250

fires when a test is done successfuly

Event Payload:

testFAil

Defined in bin/bromine.js:815

fires when a test is done but failed

Event Payload:

testFAil

Defined in src/Bromine.js:258

fires when a test is done but failed

Event Payload: