Skip to content

Commit d8b0e76

Browse files
committed
Try new testsuite with travis.yml
1 parent 4e7e07f commit d8b0e76

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ before_script:
2323
- ./configure && make && sudo make install
2424
- cd ..
2525
- tmux -V
26-
script: python run_tests.py
26+
#script: python run_tests.py
27+
script: python setup.py test

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
Manage tmux workspaces from JSON and YAML, pythonic API, shell completion.
77
8-
98
"""
109
import sys
1110
from setuptools import setup
@@ -44,6 +43,7 @@
4443
include_package_data=True,
4544
install_requires=install_reqs,
4645
tests_require=tests_reqs,
46+
test_suite='tmuxp.testsuite',
4747
scripts=['pkg/tmuxp.bash', 'pkg/tmuxp.zsh', 'pkg/tmuxp.tcsh'],
4848
entry_points=dict(console_scripts=['tmuxp=tmuxp:main']),
4949
classifiers=[

tmuxp/testsuite/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@
2727
testsuite_logger = logging.getLogger(__name__)
2828

2929
testsuite_logger.setLevel('INFO')
30+
31+
32+
def suite():
33+
import unittest
34+
35+
return unittest.TestLoader().discover('.', pattern="*.py")

0 commit comments

Comments
 (0)