log status on tests
This commit is contained in:
parent
a864400f1f
commit
132464b35f
1 changed files with 9 additions and 0 deletions
|
@ -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!"
|
||||||
|
|
Reference in a new issue