Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 924 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 924 Bytes

express-app-demo

This is a simple express.js app to be pass through central CI and CD process using Jenkins and Travis deployed on kubernetes cluster hosted on Local machines. Mocha and Supertest are used for unit and integration testing. Istanbul is used for viewing code coverage. Note that this app only focuses on server-side JavaScript testing.

Requirements

Getting Started

  • Clone the repo
  • Install dependencies with npm install

Running Tests

  • Run all tests: grunt test
  • Run unit tests: grunt mochaTest:unit
  • Run route tests: grunt mochaTest:route
  • Run api tests: grunt mochaTest:api

Running Code Coverage Report

Build the code coverage report with grunt coverage.