1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/scripts/runtests
2016-11-27 22:06:50 +00:00

30 lines
648 B
Bash
Executable file

#!/usr/bin/env bash
set -e
echo "> Starting Tests..."
export PATH=node_modules/.bin:${PATH}
export PATH=env/bin:${PATH}
export DEBUG=true
export IN_TEST=true
export SECRET_KEY='secrit'
echo ">> Running flake8..."
flake8 project --ignore=E128,E501 --exclude=migrations,wsgi.py
echo ">> Running backend unit tests..."
coverage run --source=project --omit='*/wsgi.py,*/settings.py,*/migrations/*.py,*__init__.py' manage.py test $@
coverage report
echo ">> Testing client-side"
eslint static/src
sass-lint -vqc .sass-lint.yml
echo ">> Checking Security..."
bandit -r project/ manage.py
safety check
nsp check
snyk test
echo "> Tests complete!"