GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mathjs/test at master · oss-contrib/mathjs

Expand file tree

/

test

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

test

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
chaining
chaining
 
 
expression
expression
 
 
function
function
 
 
type
type
 
 
util
util
 
 
README.md
README.md
 
 
approx.test.js
approx.test.js
 
 
contstants.test.js
contstants.test.js
 
 
math.test.js
math.test.js
 
 
test.html
test.html
 
 
test.min.html
test.min.html
 
 
test_bignumber.html
test_bignumber.html
 
 

README.md

Outline

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 gotwarlost/istanbul#44.

To see the results, open the generated report in your browser:

./coverage/lcov-report/index.html
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.