Skip to content

JavaScript unit testing and other fun activities with Mocha, Chai, Istanbul and Travis-CI.

Notifications You must be signed in to change notification settings

Tibzie/Unit_testing_mocha_chai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unit tests of a simple calculator and string function

About

I wanted to utilise existing knowledge to use Mocha and Chai to do more unit tests.
Furthermore, I wanted to explore other options, such as other Chai assertions and code coverage.

Technologies

  • NodeJS: to create a simple application
  • MochaJS: to provide testing structure
  • Chai: to provide assertions functions
  • Istanbul: to track statements, branches, function coverage and line coverage
  • Travis-CI: to test and build projects hosted at GitHub.

Screenshots:

  • Unit tests:
    unittests

  • Coverage summary report:
    coveragesummary

  • Coverage summary (html):
    coveragehtml

  • Succesfully built the project:
    travis_ci_success

About

JavaScript unit testing and other fun activities with Mocha, Chai, Istanbul and Travis-CI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages