Skip to content

NCCUCS-PLSM/JS-UTest

Repository files navigation

#About Author: Veck Hsiao

This is a project of study JavaScript unit test suite step by step.

The unit test suite is: mocha + chai + sinon + karma

  • Mocha - Test Framework
  • Chai - Test Case Library
  • Sinon - Test Double Library(Mock Object Provider)
  • Karma - Browser-based Test Runner

#Project

  • 1_mocha - First step, we need to know about the framework that used throghout the entire testing flow.
  • 2_mocha_chai - Next, we use a library that extends assertion API of node.js assert module.
  • 3_mocha_chai_sinon - Then, as design pattern and software engineering course had said, test double is really helpful for doing unit test.
  • 4_karma_mocha_chai_sinon - Finally, we adopt a test runner to achieve automatic and vast amount work.
  • 4-1_karma-sinon-chai - An additional sample for using karma-sinon-chai plugin.

About

JavaScript Unit Test Study Sample Codes and Notes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published