From 007ffcf2e76995f7ffe9b913ec04f087153cc31b Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Sun, 2 Feb 2014 18:00:54 +0100 Subject: [PATCH] Use nose The sanest way to discover and run tests across py27, py33, py34, tox and Travis-CI and 'setup.py test'. --- .travis.yml | 2 +- setup.py | 2 +- test-requirements.txt | 1 + tox.ini | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 784aa9e..6206e0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,4 @@ python: - "2.7" - "3.3" install: "pip install --use-mirrors -r test-requirements.txt" -script: python test/__init__.py -v +script: nosetests -v diff --git a/setup.py b/setup.py index 753e5c8..9aa002a 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( scripts=['scripts/lesscpy'], install_requires=install_requires, tests_require=test_requires, - test_suite='test', + test_suite='nose.collector', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', diff --git a/test-requirements.txt b/test-requirements.txt index eded441..6f6d976 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,2 +1,3 @@ -r requirements.txt flake8 +nose diff --git a/tox.ini b/tox.ini index 24346e6..39959ab 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ envlist = py26,py27,py33,flake8 [testenv] deps = -r{toxinidir}/test-requirements.txt -commands = python test/__init__.py -v +commands = nosetests -v [testenv:flake8] commands = flake8