Skip to content

Commit

Permalink
Added tox, coverage, and tests_integration concept
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHuot committed Dec 18, 2017
1 parent d23764e commit 4f18d51
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
omit =
.tox/*
tests/*
tests_integration/*

[report]
omit =
.tox/*
tests/*
tests_integration/*
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ build
*.egg-info
*,cover
dist
htmlcov
htmlcov*
venv
.tox
.#*
**/#*#
*~
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include requirements.in
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from setuptools import setup
from os import path,getenv
from os import path, getenv
import inspect


if getenv("PATCH_VERSION"):
patch = getenv("PATCH_VERSION")
else:
Expand All @@ -20,5 +21,5 @@
author_email="[email protected]",
packages=['bottle_oauthlib'],
install_requires=dependencies,
#tests_require=dependencies,
test_suite='tests'
)
Empty file added tests_integration/__init__.py
Empty file.
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[tox]
envlist = py36-unit,py36-integration

[testenv]
deps =
-rrequirements.txt
unit: coverage
commands =
unit: python -m unittest discover -s tests
unit: coverage erase
unit: coverage run --append -m unittest discover -s tests
unit: coverage report
unit: coverage html -d htmlcov-{envname}
integration: python -m unittest discover -s tests_integration

0 comments on commit 4f18d51

Please sign in to comment.