dockerized_openAger/nodered/rootfs/data/node_modules/mathjs/test
2020-10-17 18:42:50 +02:00
..
core Intial Commit 2020-10-17 18:42:50 +02:00
error Intial Commit 2020-10-17 18:42:50 +02:00
expression Intial Commit 2020-10-17 18:42:50 +02:00
function Intial Commit 2020-10-17 18:42:50 +02:00
json Intial Commit 2020-10-17 18:42:50 +02:00
type Intial Commit 2020-10-17 18:42:50 +02:00
utils Intial Commit 2020-10-17 18:42:50 +02:00
approx.test.js Intial Commit 2020-10-17 18:42:50 +02:00
constants.test.js Intial Commit 2020-10-17 18:42:50 +02:00
deprecated.test.js Intial Commit 2020-10-17 18:42:50 +02:00
index.test.js Intial Commit 2020-10-17 18:42:50 +02:00
pi_bailey-borwein-plouffe.html Intial Commit 2020-10-17 18:42:50 +02:00
pi_machin.html Intial Commit 2020-10-17 18:42:50 +02:00
README.md Intial Commit 2020-10-17 18:42:50 +02:00
test_bignumber.html Intial Commit 2020-10-17 18:42:50 +02:00
test.html Intial Commit 2020-10-17 18:42:50 +02:00
test.min.html Intial Commit 2020-10-17 18:42:50 +02:00

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