The modern, simple and intuitive PHP 5.3+ unit testing framework, now for JS
$ git clone https://github.com/jubianchi/atoum.js.git
$ cd atoum.js
$ npm install
$ 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]
# This will run all tests in the given directory
$ bin/atoum -d path/to/tests/directory
Here is an example test.
Other examples with multiple test cases.
# This will run the atoum.js' test suite
$ make test