From 0fb1980ebe3b8d82ef96f2ace64f2de44f74e594 Mon Sep 17 00:00:00 2001 From: Mohamed Feddad Date: Sat, 12 Sep 2020 21:51:03 +0300 Subject: [PATCH] Update test commands to handle nested directories. --- .travis.yml | 2 +- installer.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cb80aa4..50dcf57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,6 @@ python: install: - pip install -r requirements/test.txt -script: flake8 app/**/** tests/** && pytest -vv tests/* --cov=./app +script: flake8 app/**/**/** tests/**/**/** && pytest -vv tests/*/* --cov=./app after_success: - coveralls diff --git a/installer.sh b/installer.sh index e77e3c1..35729e3 100755 --- a/installer.sh +++ b/installer.sh @@ -75,11 +75,12 @@ then if [ -d installiation/ ] then source installiation/bin/activate + rm -rf tests/__pycache__/ if [ -z "$2" ] then - python -m flake8 app/**/** tests/** && python -m pytest --count=2 -vv tests/* --cov=./app + python -m flake8 app/**/**/** tests/**/**/** && python -m pytest --count=2 -vv tests/*/* --cov=./app else - python -m flake8 app/**/** tests/** && python -m pytest --count=$2 -vv tests/* --cov=./app + python -m flake8 app/**/**/** tests/**/**/** && python -m pytest --count=$2 -vv tests/*/* --cov=./app fi else echo $error1