Refactor testing setup (#220)

* Refactor tox and travis config files

Separates flake8 and isort into separate tox tasks
Tie flake8 and isort to specific python version so they only run once on Travis
Add python3.7 to tested python versions
* Requires newer Xenial base
* Running Xenial on Travis requires sudo
Move coveralls submission to travis config to avoid triggering during local runs.

* Require all tests to be run

Clean up test generation code form test_fi.py
Perform coverage measurement of tests
Fail tox if coverage of tests directory isn't at 100%

* Further Tox refactoring

Measure project coverage explicitly instead of omitting non-project files from reporting
Add branch measurement to coverage
Only report to coveralls if a .coverage result file exists
Make dependencies for each testenv explict and only include requried deps

* Small readme update to trigger travis

Add overly brief message about installing and running tox

* Fix unescaped flake8 violations

Unescaped \w -> \\w and \e to \\e in regex patterns found with updated flake8
This commit is contained in:
btharper
2018-10-26 09:31:41 -04:00
committed by Ernesto Rodriguez Ortiz
parent c606fd54e8
commit 5c9bce19e4
8 changed files with 44 additions and 64 deletions

View File

@@ -1,4 +1,5 @@
[report]
omit =
*/.tox/*
*/tests/*
[run]
branch = true
source =
num2words
tests