Sachin077 / express-app-testing-demo

a simple express.js app for demonstrating testing and code coverage

Home Page:http://express-app-testing-demo.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

express-app-testing-demo

This is a simple express.js app for demonstrating testing and code coverage. 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
  • Run development server with grunt and go here: http://localhost:3000/

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.

About

a simple express.js app for demonstrating testing and code coverage

http://express-app-testing-demo.herokuapp.com/


Languages

Language:HTML 83.2%Language:JavaScript 16.7%Language:CSS 0.1%