API Docs for: 0.0.4
Show:

Reporter Class

Defined in: index.js:35
Module: Reporter

The HTML reporter can produce a set of HTML files with the results of your testrun.

The reporter can be installed with the following command:

$ npm install dalek-reporter-html --save-dev

By default the files will be written to the report/dalek/ folder, you can change this by adding a config option to the your Dalekfile

"html-reporter": {
  "dest": "your/folder"
}

If you would like to use the reporter (in addition to the std. console reporter), you can start dalek with a special command line argument

$ dalek your_test.js -r console,html

or you can add it to your Dalekfile

"reporter": ["console", "html"]

Constructor

Reporter

()

Defined in index.js:35

Methods

_recursiveMakeDirSync

(
  • path
)

Defined in index.js:309

Helper method to generate deeper nested directory structures

Parameters:

  • path String

    PAth to create

addActionToDetailPage

(
  • data
)
chainable

Defined in index.js:187

Adds an action output to the detail page

Parameters:

  • data Object

    Event data

addAssertionToDetailPage

(
  • data
)
chainable

Defined in index.js:201

Adds an assertion result to the detail page

Parameters:

  • data Object

    Event data

finishDetailPage

(
  • data
)
chainable

Defined in index.js:215

Writes a detail page to the file system

Parameters:

  • data Object

    Event data

initOutputHandlers

() chainable

Defined in index.js:100

Inits the html buffer objects

loadTemplates

() chainable

Defined in index.js:113

Loads and prepares all the templates for CSS, JS & HTML

outputAssertionResult

(
  • data
)
chainable

Defined in index.js:280

Pushes an assertion result to the index output queue

Parameters:

  • data Object

    Event data

outputRunBrowser

(
  • browser
)
chainable

Defined in index.js:231

Stores the current browser name

Parameters:

  • browser String

    Browser name

outputRunnerFinished

(
  • data
)
chainable

Defined in index.js:244

Writes the index page to the filesystem

Parameters:

  • data Object

    Event data

outputTestFinished

(
  • data
)
chainable

Defined in index.js:293

Pushes an test result to the index output queue

Parameters:

  • data Object

    Event data

startDetailPage

() chainable

Defined in index.js:174

Prepares the output for a test detail page

startListening

() chainable

Defined in index.js:151

Connects to all the event listeners