Testing in JavaScript - AutolabJS/autolabcli GitHub Wiki

This is a quick start guide for writing test suite for nodejs applications. The content of this quick start guide are organised in the following pages.

  • Introduction: Introduces TDD cycle for unit and behavioral tests
  • Unit Tests: Explains the advantages of the unit tests
  • Integration Tests: Explains the advantages of the integration tests
  • Feature Tests: Explains the advantages of the feature tests
  • Technology Stack: List the preferred libraries for the ES6 projects
  • Cucumber: Tutorial cum coding style guide on Cucumber BDD library
  • Mocha: Tutorial cum coding style guide on Mocha unit test library
  • Chai: Tutorial cum coding style guide on Chai assertion library
  • Sinon: Tutorial cum coding style guide on Sinon mock library
  • Test Doubles: Briefly explains the use of different test doubles using code snippets