Giter Site home page Giter Site logo

kosli-dev / tdd Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 1.0 481 KB

Demo Python Gunicorn+Flask app skeleton

License: BSD 2-Clause "Simplified" License

Dockerfile 0.36% Shell 4.89% Python 24.20% HTML 1.00% JavaScript 69.28% SCSS 0.27%
coverage python system-tests tdd unit-tests gunicorn-flask-webserver

tdd's Introduction

Github Action (main)

The following blog posts link to this repo:

A public demo repo of

  • gunicorn running with multiple workers
  • each worker running a simple Flask web server (with an API)
  • the web server scores the XY Business Game by Jerry Weinberg
  • the web server runs inside a read-only Docker container
  • system tests with full branch coverage
  • unit tests with full branch coverage
$ source scripts/shortcuts.sh

$ rst          # Run all System Tests in new server ~10s
$ est          # Exec all System Tests in restarted server ~4s
$ rst 04692400 # Run only System Test 04692400 in new server
$ est 04692400 # Exec only System Test 04692400 in restarted server

$ rut          # Run all Unit Tests in new server ~10s
$ eut          # Exec all Unit Tests in existing server ~1s
$ rut a2189600 # Run only Unit Test a2189600 in new server
$ eut a2189600 # Exec only Unit Test a2189600 in existing server

$ ctc          # gather Combined Test Coverage
$ demo         # run a demo server on localhost:80
$ hup          # restart the demo server
$ tid          # generate a test id

tdd's People

Contributors

abingham avatar jonjagger avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

shalevy1

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.