jubianchi / atoum.js

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

Home Page:http://jubianchi.fr/atoum.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 https://github.com/jubianchi/atoum.js.git
$ cd atoum.js
$ npm install

How to use

$ bin/atoum -h

Options:
  --help, -h           Display this help message                [boolean]
  --directory, -d      Test directory                           [string]   [default: []]
  --file, -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

About

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

http://jubianchi.fr/atoum.js


Languages

Language:JavaScript 100.0%