Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ environment:

install:
- "%PYTHON%\\python.exe -m pip install --upgrade pip"
- "%PYTHON%\\python.exe -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0"
- "%PYTHON%\\python.exe -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0 coveralls>=1.5.0"

build: off

test_script:
- "%PYTHON%\\python.exe -m unittest test"
- "%PYTHON%\\python.exe setup.py test"

after_test:
- "%PYTHON%\\python.exe -m coverage run setup.py test"
- "%PYTHON%\\python.exe -m coveralls"
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,15 @@ matrix:

install:
- curl https://bootstrap.pypa.io/get-pip.py | python
- python -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0
- python -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0 coveralls>=1.5.0

script:
- python -m unittest --verbose test
- "[[ $(python -c \"import platform; print(platform.python_implementation())\") == \"CPython\" ]] && PYTHONASYNCIODEBUG=1 python -m unittest test || true"
- python setup.py test
- "[[ $(python -c \"import platform; print(platform.python_implementation())\") == \"CPython\" ]] && PYTHONASYNCIODEBUG=1 python setup.py test || true"

after_success:
- python -m coverage run setup.py test
- python -m coveralls

deploy:
provider: pypi
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
.. image:: https://ci.appveyor.com/api/projects/status/github/Martiusweb/asynctest?branch=master&svg=true
:target: https://ci.appveyor.com/project/Martiusweb/asynctest/branch/master
:alt: AppVeyor
.. image:: https://coveralls.io/repos/github/Martiusweb/asynctest/badge.svg?branch=master
:target: https://coveralls.io/github/Martiusweb/asynctest?branch=master
:alt: Coverage
.. image:: https://img.shields.io/pypi/pyversions/asynctest.svg
:target: https://github.com/Martiusweb/asynctest
:alt: Supported Python versions
Expand Down
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ keywords =
packages = find:
python_requires = >=3.4
zip_safe = True
test_suite = test.test_suite

[coverage:run]
branch = True
source = asynctest

[tool:pytest]
testpaths = test
17 changes: 13 additions & 4 deletions test/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
from .test_case import *
from .test_helpers import *
from .test_mock import *
from .test_selector import *
import unittest

test_modules = (
'test_case',
'test_helpers',
'test_mock',
'test_selector'
)
test_suite = unittest.defaultTestLoader.loadTestsFromNames(('{}.{}'.format(__name__, m) for m in test_modules))


def load_tests(loader, tests, pattern):
return test_suite