Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added flushing of testprogram's output, so you can use tdaemon in a pipe on the commandline #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.pyc
*.pyc
dist
*.egg-info
10 changes: 8 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
Copyright (c) 2008-2009 Bruno Bord
License
=======

MIT license

http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2008-2009 Bruno Bord and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -17,4 +24,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exclude test.py
exclude README.md
exclude MANIFEST.in
31 changes: 31 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
try:
from setuptools import setup
except ImportError:
from distutils.core import setup

setup(
name = "tdaemon",
version = "0.1.1",
maintainer = "John Paulett",
maintainer_email = "[email protected]",
description = "Test Daemon",
long_description = "The test daemon watches the content of files in a directory and if any of them changes (the content is edited), it runs the tests.",
url = "http://github.com/brunobord/tdaemon",
license = "MIT",
platforms = ['POSIX', 'Windows'],
keywords = ['test', 'testing', 'noestests', 'django', 'py.test'],
classifiers = [
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Testing",
"Programming Language :: Python",
"Intended Audience :: Developers",
],
entry_points = {
'console_scripts': [
'tdaemon = tdaemon:main',
],
},
py_modules = ['tdaemon'],

)

1 change: 1 addition & 0 deletions tdaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def run(self, cmd):
output = subprocess.Popen(cmd, shell=True)
output = output.communicate()[0]
print output
sys.stdout.flush()

def run_tests(self):
"""Execute tests"""
Expand Down