Skip to content

Commit

Permalink
Update test commands to handle nested directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrf345 committed Sep 12, 2020
1 parent 149ff30 commit 0fb1980
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fb1980

Please sign in to comment.