forked from Refinitiv/bottle-oauthlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tox, coverage, and tests_integration concept
- Loading branch information
1 parent
d23764e
commit 4f18d51
Showing
6 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,9 @@ build | |
*.egg-info | ||
*,cover | ||
dist | ||
htmlcov | ||
htmlcov* | ||
venv | ||
.tox | ||
.#* | ||
**/#*# | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include requirements.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -20,5 +21,5 @@ | |
author_email="[email protected]", | ||
packages=['bottle_oauthlib'], | ||
install_requires=dependencies, | ||
#tests_require=dependencies, | ||
test_suite='tests' | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |