Giter Site home page Giter Site logo

efkan / express-app-testing-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gregjopa/express-app-testing-demo

0.0 1.0 0.0 362 KB

a simple express app for demonstrating testing and code coverage

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

JavaScript 32.18% CSS 8.74% HTML 59.08%

express-app-testing-demo's Introduction

express-app-testing-demo

This project is a simple express app for demonstrating testing and code coverage. Jest and Supertest are used for testing. Jest is also used for mocking functions and measuring 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 server with npm start and go here: http://localhost:3000/

Running Tests

  • Run unit and integration tests: npm test
  • Run end-to-end tests: npm run test:e2e

Code Coverage Report

A new code coverage report is generated every time npm test runs. Normally this coverage report is ignored by git. This project includes it in source control so the coverage report can be viewed in the demo app: http://express-app-testing-demo.herokuapp.com/coverage/lcov-report/index.html

express-app-testing-demo's People

Contributors

gregjopa avatar mortonfox avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.