-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ added matrix to travis builds + added tox envs #29 + edited setup for fix pytest support #30 + fix for README on pypi + added badges on README for github
- Loading branch information
Showing
5 changed files
with
156 additions
and
28 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
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
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 @@ | ||
[pytest] | ||
addopts = | ||
--verbose | ||
--junit-xml=tests/reports/report_xunit.xml | ||
--html=tests/reports/report_html.html | ||
--self-contained-html | ||
--cov=qalab tests/ | ||
--cov-report html:tests/reports/report_coverage_html/ | ||
--cov-report xml:tests/reports/report_coverage.xml | ||
testpaths = tests | ||
console_output_style = progress | ||
python_files = suite_*_*.py | ||
python_classes = Test* | ||
python_functions = test_*_* |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
from setuptools import setup, find_packages | ||
|
||
|
||
VERSION = '0.1.0' | ||
CURR_PATH = path.abspath(path.dirname(__file__)) | ||
# make works script on windows | ||
sys.path.append(path.join(CURR_PATH, 'qalab')) | ||
|
@@ -19,22 +20,45 @@ def readme(): | |
|
||
|
||
setup(name='qalaboratory', | ||
version='0.1.0', | ||
version=VERSION, | ||
packages=find_packages(exclude=['tests']), | ||
description='QALAB, proyect manager for QA open source proyects', | ||
long_description=readme(), | ||
author='Netzulo Open Source', | ||
author_email='[email protected]', | ||
url='https://github.com/netzulo/qalab', | ||
download_url='https://github.com/netzulo/qalab/tarball/v0.1.0', | ||
download_url='https://github.com/netzulo/qalab/tarball/v{}'.format( | ||
VERSION), | ||
install_requires=[ | ||
'appdirs', | ||
'packaging==16.8', | ||
'pyparsing', | ||
'six==1.10.0', | ||
'nose==1.3.7', | ||
'nose-testconfig==0.10', | ||
'wget' | ||
'wget', | ||
'pytest' | ||
], | ||
setup_requires=[ | ||
'pytest-runner', | ||
'tox', | ||
], | ||
tests_require=[ | ||
'pytest-html', | ||
'pytest-dependency', | ||
'pytest-cov', | ||
], | ||
scripts=['qalab/qalab.py'], | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'Topic :: Software Development :: Build Tools', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', | ||
], | ||
keywords=[ | ||
'testing', | ||
|
@@ -57,6 +81,5 @@ def readme(): | |
'selendroid', | ||
'automation', | ||
'pytest' | ||
], | ||
scripts=['qalab/qalab.py'] | ||
] | ||
) |
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,65 @@ | ||
[tox] | ||
envlist = | ||
py27, | ||
py34, | ||
py35, | ||
py36, | ||
flake8, | ||
docs, | ||
selenium-hub, | ||
selenium-node, | ||
selendroid-hub, | ||
selendroid-node, | ||
appium-node | ||
[testenv:py27] | ||
commands = python setup.py test | ||
[testenv:py34] | ||
commands = python setup.py test | ||
[testenv:py35] | ||
commands = python setup.py test | ||
[testenv:py36] | ||
commands = python setup.py test | ||
[testenv:docs] | ||
skip_install = true | ||
commands = sphinx-build -b html qalab docs | ||
deps = | ||
Sphinx | ||
[testenv:flake8] | ||
skip_install = true | ||
max-complexity = 10 | ||
commands = flake8 qalab/ tests/ | ||
deps = | ||
flake8 | ||
flake8-docstrings>=0.2.7 | ||
flake8-import-order>=0.9 | ||
pep8-naming | ||
flake8-colors | ||
exclude = | ||
.git, | ||
__pycache__, | ||
docs/source/conf.py, | ||
old, | ||
build, | ||
dist, | ||
logs, | ||
.vscode, | ||
.eggs, | ||
.cache | ||
|
||
# APP envs | ||
[testenv:selenium-hub] | ||
skip_install = true | ||
commands = python qalab/qalab.py -sd selenium -m hub -i | ||
[testenv:selenium-node] | ||
skip_install = true | ||
commands = python qalab/qalab.py -sd selenium -m node -i | ||
[testenv:selendroid-hub] | ||
skip_install = true | ||
commands = python qalab/qalab.py -sd selendroid -m hub -i | ||
[testenv:selendroid-node] | ||
skip_install = true | ||
commands = python qalab/qalab.py -sd selendroid -m node -i | ||
[testenv:appium-node] | ||
skip_install = true | ||
commands = python qalab/qalab.py -sd appium -m node -i | ||
|