Best Flask open-source libraries and packages

Tdd talk

Python Flask app skeleton with coverage for unit and system tests and test experiments
Updated 1 year ago

Repo to illustrate TDD topics for future talks/blogs

o) gathering coverage stats from the server's container when system tests are being run from a different container without having to `docker-compose up ...' each time.

docker exec ... "pkill SIGHUP -o gunicorn"

o) doing so without killing the server container

o) gathering coverage stats for code and for tests

o) using tests named with a GUID

o) contract/characterisation testing with decorators

o) running the server in a read-only container

o) runner the server as a non root user

$ source scripts/shortcuts.sh

$ tid          # generate a test id

$ rut          # Run all Unit Tests in new xy server
$ rut a2189600 # Run only Unit Test_a2189600 in new xy server
$ eut          # Exec all Unit Tests in existing xy server
$ eut a2189600 # Exec only Unit Test a2189600 in existing xy server

$ rst          # Run all System Tests in new xy server
$ rst 04692400 # Run only System Test_04692400 in new xy server
$ est          # Exec all System Tests in restarted xy server
$ est 04692400 # Exec only System Test 04692400 in restarted xy server

$ demo         # run a demo server 
$ hup          # restart the demo server
Tags testing tdd