atoum.js

0.0.11 • Public • Published

atoum.js

Build Status Dependency Status

The modern, simple and intuitive PHP 5.3+ unit testing framework, now for JS

How to install

$ git clone git@github.com:jubianchi/atoum.js.git
$ cd atoum.js
$ npm install

How to use

$ bin/atoum -h

Options:
  --help, -h, -h       Display this help message                [boolean]
  --directory, -d, -d  Test directory                           [string]   [default: []]
  --file, -f, -f       Test file                                [string]   [default: []]
  --xunit              Enable xUnit report                      [boolean]  [default: false]
  --xunit-output       Path to xUnit report file                [string]   [default: "xunit.xml"]
  --coverage           Enable code coverage report              [boolean]  [default: false]
  --coverage-dir       Path to sources to instrument            [string]   [default: "lib"]
  --inline             Use inline engine instead of concurrent  [boolean]

Example

# This will run all tests in the given directory
$ bin/atoum -d path/to/tests/directory

How to write tests

Here is an example test.

Other examples with multiple test cases.

Hacking atoum.js

# This will run the atoum.js' test suite
$ make test

Readme

Keywords

none

Package Sidebar

Install

npm i atoum.js

Weekly Downloads

0

Version

0.0.11

License

none

Last publish

Collaborators

  • jubianchi