Skip to content

Commit d9611e0

Browse files
committed
Add a features list and sync README.
1 parent a08a100 commit d9611e0

File tree

2 files changed

+96
-2
lines changed

2 files changed

+96
-2
lines changed

README

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ script is running, it will monitor for changes in your code and re-run your
66
test suite when needed. There are frontends for multiple frameworks as well
77
as several notification UIs.
88

9-
For further documentation see http://packages.python.org/PyZen
9+
Features
10+
--------
11+
12+
* Monitor source code and run tests on change
13+
* OS-specific async notification UI
14+
* Colored test output
1015

1116
Installation
1217
------------
@@ -19,3 +24,84 @@ or pip::
1924

2025
$ pip install PyZen
2126

27+
28+
Frontends
29+
---------
30+
31+
PyZen provides multiple frontends to collect tests and run the continuous
32+
tester.
33+
34+
Django
35+
~~~~~~
36+
37+
To setup PyZen under Django add ``pyzen`` to your ``INSTALLED_APPS`` setting.
38+
The run ``manage.py zen`` to start the tester process. You can give an
39+
application label or test name using the same format as the built-in ``test``
40+
command.
41+
42+
Flask
43+
~~~~~
44+
45+
The Flask frontend is maintained as separate package, `Flask-Zen`_.
46+
47+
.. _Flask-Zen: http://pypi.python.org/pypi/Flask-Zen
48+
49+
Distutils
50+
~~~~~~~~~
51+
52+
The PyZen package provides a distutils command ``zen`` that will run the test
53+
suite configured in setup.py under PyZen. Run ``setup.py zen`` to start the
54+
tester process.
55+
56+
Standalone
57+
~~~~~~~~~~
58+
59+
The ``pyzen`` script provides a wrapper to run any test script under PyZen.
60+
Run ``pyzen yourscript.py arg1 arg2 ...`` to start the tester process. No
61+
configuration options are available at this time.
62+
63+
Options
64+
~~~~~~~
65+
66+
``--nocolor`` : *flag, default: False*
67+
Disable colored output.
68+
69+
``-u``, ``--ui`` : *default: autodetect*
70+
Force the use of a specific UI module. Available options are ``win32``,
71+
``osx``, ``linux``, and ``none``.
72+
73+
UIs
74+
---
75+
76+
PyZen provides a UI to indicate the current test status after each run, even
77+
if the console is in the background. In addition to the three
78+
platform-specific interfaces, the ``none`` interface will disable this
79+
display. See the frontend documentation for details, but most frontends offer
80+
a ``--ui`` option to override the autodetection.
81+
82+
Win32
83+
~~~~~
84+
85+
The default UI on Windows is a systray icon indicating the current test status
86+
and balloon notifications after each run. This UI is tested on Windows XP and
87+
higher, though it may work with Windows 2000.
88+
89+
OS X
90+
~~~~
91+
92+
The default UI on OS X uses Growl via AppleScript. A Growl notification is
93+
posted after each test run.
94+
95+
Linux
96+
~~~~~
97+
98+
The default UI on Linux uses libnotify via the pynotify library. This is
99+
installed by default on current versions of Ubuntu. If pynotify is not found,
100+
the interface will be disabled.
101+
102+
Test Runner
103+
-----------
104+
105+
By default PyZen enhances the test output with color. It is known to work on
106+
both Windows and \*nix systems. Most frontends have a ``--nocolor`` option to
107+
disable it if needed.

docs/index.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ script is running, it will monitor for changes in your code and re-run your
66
test suite when needed. There are frontends for multiple frameworks as well
77
as several notification UIs.
88

9+
Features
10+
--------
11+
12+
* Monitor source code and run tests on change
13+
* OS-specific async notification UI
14+
* Colored test output
15+
916
Installation
1017
------------
1118

@@ -21,7 +28,8 @@ or pip::
2128
Frontends
2229
---------
2330

24-
PyZen provides multiple frontends to collect and run the continuous tester.
31+
PyZen provides multiple frontends to collect tests and run the continuous
32+
tester.
2533

2634
Django
2735
~~~~~~

0 commit comments

Comments
 (0)