thainnos / LICSTER

A Low-cost ICS Security Testbed for Education and Research
Other
100 stars 33 forks source link

Updated forms, added Unit Tests, Jenkins executes tests after failure, pre-commit hook runs tests locally before accepting a commit. #46

Closed an-toni-ok closed 3 years ago

an-toni-ok commented 3 years ago

Updated forms in Flask application because of deprecation warning. Added pytest Unit tests to the Flask application. Jenkins has a start script now. Jenkins executes all tests instead of stopping after a failed one. Added a pre-commit git hook, which runs the pytest Unit tests, the bandit tests and the flake8 tests locally in a docker container before a commit is accepted locally. (The flag --no-verify can be used to skip the git hook.)