1
Fork 0

log status on tests

This commit is contained in:
Jake Howard 2016-11-27 22:06:50 +00:00
parent a864400f1f
commit 132464b35f
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

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