API: test coverage on codacy
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -10,6 +10,7 @@ __pycache__
 | 
				
			|||||||
uploads
 | 
					uploads
 | 
				
			||||||
.cache
 | 
					.cache
 | 
				
			||||||
.coverage
 | 
					.coverage
 | 
				
			||||||
 | 
					coverage.xml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# MPWO_CLIENT
 | 
					# MPWO_CLIENT
 | 
				
			||||||
###############
 | 
					###############
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							@@ -48,7 +48,13 @@ test-e2e:
 | 
				
			|||||||
	$(NPM) test
 | 
						$(NPM) test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test-python:
 | 
					test-python:
 | 
				
			||||||
	$(PYTEST) mpwo_api --cov-config .coveragerc --cov=mpwo_api
 | 
						$(PYTEST) mpwo_api --cov-config .coveragerc --cov=mpwo_api --cov-report term-missing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					test-python-xml:
 | 
				
			||||||
 | 
						$(PYTEST) mpwo_api --cov-config .coveragerc --cov=mpwo_api --cov-report xml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					update-cov:
 | 
				
			||||||
 | 
						$(COV) -r coverage.xml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
upgrade-db:
 | 
					upgrade-db:
 | 
				
			||||||
	$(FLASK) db upgrade --directory $(MIGRATIONS)
 | 
						$(FLASK) db upgrade --directory $(MIGRATIONS)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,6 +19,7 @@ PYTHON = $(VENV)/bin/python
 | 
				
			|||||||
PIP = $(VENV)/bin/pip
 | 
					PIP = $(VENV)/bin/pip
 | 
				
			||||||
FLASK = $(VENV)/bin/flask
 | 
					FLASK = $(VENV)/bin/flask
 | 
				
			||||||
PYTEST = $(VENV)/bin/py.test
 | 
					PYTEST = $(VENV)/bin/py.test
 | 
				
			||||||
 | 
					COV = $(VENV)/bin/python-codacy-coverage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Node env
 | 
					# Node env
 | 
				
			||||||
NODE_MODULES = $(PWD)/mpwo_client/node_modules
 | 
					NODE_MODULES = $(PWD)/mpwo_client/node_modules
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1,4 @@
 | 
				
			|||||||
export REACT_APP_THUNDERFOREST_API_KEY=
 | 
					export REACT_APP_THUNDERFOREST_API_KEY=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# for dev env
 | 
				
			||||||
 | 
					export CODACY_PROJECT_TOKEN=
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,12 @@
 | 
				
			|||||||
[](http://flask.pocoo.org/) 
 | 
					[](http://flask.pocoo.org/) 
 | 
				
			||||||
[](https://reactjs.org/)  
 | 
					[](https://reactjs.org/)  
 | 
				
			||||||
[](https://www.codacy.com/app/SamR1/mpwo?utm_source=github.com&utm_medium=referral&utm_content=SamR1/mpwo&utm_campaign=badger)
 | 
					[](https://www.codacy.com/app/SamR1/mpwo?utm_source=github.com&utm_medium=referral&utm_content=SamR1/mpwo&utm_campaign=badger)
 | 
				
			||||||
 | 
					[](https://www.codacy.com/app/SamR1/mpwo?utm_source=github.com&utm_medium=referral&utm_content=SamR1/mpwo&utm_campaign=Badge_Coverage)<sup>1</sup>
 | 
				
			||||||
[](https://travis-ci.org/SamR1/mpwo)
 | 
					[](https://travis-ci.org/SamR1/mpwo)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Self hosted workout/activity tracker written with Flask and React (_work in progress_).  
 | 
					Self hosted workout/activity tracker written with Flask and React (_work in progress_).  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Notes:  
 | 
				
			||||||
 | 
					_1. Test coverage: only for Python API_
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,8 +2,11 @@ alembic==0.9.9
 | 
				
			|||||||
apipkg==1.4
 | 
					apipkg==1.4
 | 
				
			||||||
attrs==17.4.0
 | 
					attrs==17.4.0
 | 
				
			||||||
bcrypt==3.1.4
 | 
					bcrypt==3.1.4
 | 
				
			||||||
 | 
					certifi==2018.4.16
 | 
				
			||||||
cffi==1.11.2
 | 
					cffi==1.11.2
 | 
				
			||||||
 | 
					chardet==3.0.4
 | 
				
			||||||
click==6.7
 | 
					click==6.7
 | 
				
			||||||
 | 
					codacy-coverage==1.3.11
 | 
				
			||||||
coverage==4.5.1
 | 
					coverage==4.5.1
 | 
				
			||||||
execnet==1.5.0
 | 
					execnet==1.5.0
 | 
				
			||||||
flake8==3.5.0
 | 
					flake8==3.5.0
 | 
				
			||||||
@@ -14,6 +17,7 @@ Flask-Bcrypt==0.7.1
 | 
				
			|||||||
Flask-Migrate==2.1.1
 | 
					Flask-Migrate==2.1.1
 | 
				
			||||||
Flask-SQLAlchemy==2.3.2
 | 
					Flask-SQLAlchemy==2.3.2
 | 
				
			||||||
gpxpy==1.2.0
 | 
					gpxpy==1.2.0
 | 
				
			||||||
 | 
					idna==2.6
 | 
				
			||||||
isort==4.2.15
 | 
					isort==4.2.15
 | 
				
			||||||
itsdangerous==0.24
 | 
					itsdangerous==0.24
 | 
				
			||||||
Jinja2==2.10
 | 
					Jinja2==2.10
 | 
				
			||||||
@@ -36,7 +40,9 @@ pytest-isort==0.1.0
 | 
				
			|||||||
pytest-runner==3.0
 | 
					pytest-runner==3.0
 | 
				
			||||||
python-dateutil==2.7.2
 | 
					python-dateutil==2.7.2
 | 
				
			||||||
python-editor==1.0.3
 | 
					python-editor==1.0.3
 | 
				
			||||||
 | 
					requests==2.18.4
 | 
				
			||||||
six==1.11.0
 | 
					six==1.11.0
 | 
				
			||||||
SQLAlchemy==1.2.7
 | 
					SQLAlchemy==1.2.7
 | 
				
			||||||
testfixtures==5.3.1
 | 
					testfixtures==5.3.1
 | 
				
			||||||
 | 
					urllib3==1.22
 | 
				
			||||||
Werkzeug==0.14.1
 | 
					Werkzeug==0.14.1
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user