Merge pull request #147 from SchrodingersGat/coverage

Coverage
This commit is contained in:
Oliver 2019-04-25 01:40:15 +10:00 committed by GitHub
commit d46afcdfe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 4 deletions

5
.coveragerc Normal file
View File

@ -0,0 +1,5 @@
[run]
source = ./InvenTree
omit =
# Do not run coverage on migration files
*/migrations/*

4
.gitignore vendored
View File

@ -32,3 +32,7 @@ InvenTree/media
# Ignore PyCharm project configuration
.idea/
# Coverage reports
.coverage
htmlcov/

View File

@ -15,3 +15,6 @@ before_install:
script:
- make test
- make style
after_success:
- coveralls

View File

@ -11,8 +11,11 @@ style:
flake8 InvenTree --ignore=C901,E501
test:
# Perform Django system checks
python InvenTree/manage.py check
python InvenTree/manage.py test --noinput
# Run the test framework (through coverage script)
coverage run InvenTree/manage.py test
migrate:
python InvenTree/manage.py makemigrations company
@ -31,8 +34,5 @@ setup: install migrate
setup_ci:
pip install -U -r requirements/build.txt
develop:
pip install -U -r requirements/dev.txt
superuser:
python InvenTree/manage.py createsuperuser

View File

@ -1,2 +1,4 @@
-r base.txt
flake8==3.3.0
coverage>=4.5.3
python-coveralls==2.9.1