Use nose
The sanest way to discover and run tests across py27, py33, py34, tox and Travis-CI and 'setup.py test'.
This commit is contained in:
parent
f445e8d5f1
commit
007ffcf2e7
|
@ -4,4 +4,4 @@ python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.3"
|
- "3.3"
|
||||||
install: "pip install --use-mirrors -r test-requirements.txt"
|
install: "pip install --use-mirrors -r test-requirements.txt"
|
||||||
script: python test/__init__.py -v
|
script: nosetests -v
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -34,7 +34,7 @@ setup(
|
||||||
scripts=['scripts/lesscpy'],
|
scripts=['scripts/lesscpy'],
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
tests_require=test_requires,
|
tests_require=test_requires,
|
||||||
test_suite='test',
|
test_suite='nose.collector',
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
flake8
|
flake8
|
||||||
|
nose
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -3,7 +3,7 @@ envlist = py26,py27,py33,flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = python test/__init__.py -v
|
commands = nosetests -v
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
Loading…
Reference in New Issue