Skip to content

Commit

Permalink
Switch to zope.testrunner for namespace path issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Aug 4, 2017
1 parent cae1151 commit 6fe05f4
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 14 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
@@ -0,0 +1,11 @@
[run]
source = zope.browser

[report]
precision = 2
exclude_lines =
pragma: no cover
if __name__ == '__main__':
raise NotImplementedError
self.fail
raise AssertionError
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,5 +13,6 @@ parts
.coverage
coverage.xml
nosetests.xml
htmlcov/

docs/_build/
11 changes: 8 additions & 3 deletions .travis.yml
Expand Up @@ -6,10 +6,15 @@ python:
- 3.4
- 3.5
- pypy
- pypy3
- pypy3.5-5.8.0
install:
- pip install .
- pip install -U pip setuptools
- pip install -U coverage coveralls
- pip install -U -e .[test]
script:
- python setup.py test -q
- coverage run -m zope.testrunner --test-path=src
after_success:
- coveralls
notifications:
email: false
cache: pip
2 changes: 1 addition & 1 deletion MANIFEST.in
Expand Up @@ -4,7 +4,7 @@ include tox.ini
include bootstrap.py
include buildout.cfg
include .travis.yml

include .coveragerc

recursive-include src *
recursive-include docs *.py
Expand Down
15 changes: 13 additions & 2 deletions README.rst
Expand Up @@ -2,11 +2,22 @@
zope.browser
==============

.. image:: https://img.shields.io/pypi/v/zope.browser.svg
:target: https://pypi.python.org/pypi/zope.browser/
:alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.browser.svg
:target: https://pypi.org/project/zope.browser/
:alt: Supported Python versions

.. image:: https://travis-ci.org/zopefoundation/zope.browser.png?branch=master
:target: https://travis-ci.org/zopefoundation/zope.browser

.. image:: https://readthedocs.org/projects/zopesite/badge/?version=latest
:target: httpl://zopesite.readthedocs.io/en/latest/
.. image:: https://coveralls.io/repos/github/zopefoundation/zope.browser/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/zope.browser?branch=master

.. image:: https://readthedocs.org/projects/zopebrowser/badge/?version=latest
:target: https://zopebrowser.readthedocs.io/en/latest/
:alt: Documentation Status


Expand Down
10 changes: 7 additions & 3 deletions setup.py
Expand Up @@ -32,8 +32,8 @@ def read(*rnames):
read('CHANGES.rst')
),
license='ZPL 2.1',
keywords = "zope browser component",
classifiers = [
keywords="zope browser component",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
Expand All @@ -50,7 +50,8 @@ def read(*rnames):
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope3'],
'Framework :: Zope3',
],
url='https://zopebrowser.readthedocs.io',
packages=find_packages('src'),
package_dir={'': 'src'},
Expand All @@ -65,6 +66,9 @@ def read(*rnames):
'sphinx_rtd_theme',
'repoze.sphinx.autointerface',
],
'test': [
'zope.testrunner',
],
},
test_suite='zope.browser.tests.test_suite',
include_package_data=True,
Expand Down
9 changes: 4 additions & 5 deletions tox.ini
Expand Up @@ -4,21 +4,20 @@ envlist =

[testenv]
commands =
python setup.py -q test -q
zope-testrunner --test-path=src []
deps =
zope.interface
.[test]

[testenv:coverage]
usedevelop = true
basepython =
python2.7
commands =
nosetests --with-xunit --with-xcoverage
coverage run -m zope.testrunner --test-path=src
coverage report --fail-under=100
deps =
{[testenv]deps}
nose
coverage
nosexcover

[testenv:docs]
commands =
Expand Down

0 comments on commit 6fe05f4

Please sign in to comment.