mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
* add placeholder for apply function * added apply function * add test coverage for apply utility * stylsitic name change in apply source code * stylistic format change to test * improved description of function parameters * moved the apply function to the public matrix functions * update location and reference of unit test * fixed function reference paths in apply for location in function * changed path to apply in apply.test * make apply a typed function, update unit test * added typing error test to coverage * remove apply.test.js from the utils test function * added transform function for apply * add unit test for apply.transform.js
Tests
To execute the tests, install mocha and run the following in the root of
the project:
npm install -g mocha
mocha test --recursive
It's important to run mocha with the --recursive flag, as most tests are
located in nested folders.
Code coverage
To test code coverage of the tests, install istanbul and run it:
npm install -g istanbul
istanbul cover _mocha -- test --recursive
Note the underscore before mocha, and the -- surrounded by spaces after _mocha.
See also https://github.com/gotwarlost/istanbul/issues/44.
To see the results, open the generated report in your browser:
./coverage/lcov-report/index.html