xunit

Pure JavaScript xUnit style test framework.

Version:
  • 63

Classes

TestCase

TypeTool

TestExecution

TestResult

TestRunner

Members

static, constant version :number

Bumped per release.

inner, constant testing :object

See module:base~runTests for an example of how this might be used.

Properties:
Name Type Description
enabled boolean

Whether tests should be executed.

testCases Array.<module:xunit.TestCase>

Registered TestCases.

Methods

static runTests() → {module:xunit~TestResult}

Run registered TestCases.

Returns:
module:xunit~TestResult -

Accumulated results of these tests.