Skip to content

nuri35/node-js-unit-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Unit Testing In-Depth

​A focused, Node.js unit testing, from absolute beginner to very advanced.

I will post my progress during the course here.

Packages I use :

mocha mocha mocha mocha

Acquired approach :

mocha

Intro

This is a quick example project to show how a test environment can be setup in Node.js

It includes the following

  • Mocha - testing framework
  • Chai - assertion library
  • Istanbul - coverage testing
  • SinonJs - stubs and splices for mocking data

The Project

In this project, it is a small study that I created on the information I obtained from the sources in order to improve myself.

To Install

  • Navigate into your working directory, run the following commands:
  • git clone https://github.com/nuri35/node-js-unit-testing.git to clone repo
  • cd node-js-unit-testing.git to navigate into project
  • npm install to install the dependencies

To run the project

  • npm test will run the Mocha tests, output results and generate reports
  • npm run cover will run the Istanbul coverage tests and output results and generate reports

Screenshots

Command Line Output: Tests Passing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published