Skip to content

Commit 90efac7

Browse files
author
Michael Foord
committed
Issue 10502: addition of unittestgui to Tools/
1 parent 1d5eb34 commit 90efac7

File tree

5 files changed

+509
-2
lines changed

5 files changed

+509
-2
lines changed

Doc/library/unittest.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ need to derive from a specific class.
9797
A special-interest-group for discussion of testing, and testing tools,
9898
in Python.
9999

100+
The script :file:`Tools/unittestgui/unittestgui.py` in the Python source distribution is
101+
a GUI tool for test discovery and execution. This is intended largely for ease of use
102+
for those new to unit testing. For production environments it is recommended that
103+
tests be driven by a continuous integration system such as `Hudson <http://hudson-ci.org/>`_
104+
or `Buildbot <http://buildbot.net/trac>`_.
105+
106+
100107
.. _unittest-minimal-example:
101108

102109
Basic example

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ Tools/Demos
107107
demos have been removed, others integrated in documentation or a new
108108
Tools/demo subdirectory.
109109

110+
- Issue #10502: Addition of the unittestgui tool. Originally by Steve Purcell.
111+
Updated for test discovery by Mark Roddy and Python 3 compatibility by
112+
Brian Curtin.
113+
110114

111115
What's New in Python 3.2 Beta 2?
112116
================================

Tools/README

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ scripts A number of useful single-file programs, e.g. tabnanny.py
3434

3535
test2to3 A demonstration of how to use 2to3 transparently in setup.py.
3636

37-
unicode Tools used to generate unicode database files for
38-
Python 2.0 (by Fredrik Lundh).
37+
unicode Tools used to generate unicode database files (by Fredrik
38+
Lundh).
39+
40+
unittestgui A Tkinter based GUI test runner for unittest, with test
41+
discovery.
3942

4043
world Script to take a list of Internet addresses and print
4144
out where in the world those addresses originate from,

Tools/unittestgui/README.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
unittestgui.py is GUI framework and application for use with Python unit
2+
testing framework. It executes tests written using the framework provided
3+
by the 'unittest' module.
4+
5+
Based on the original by Steve Purcell, from:
6+
7+
http://pyunit.sourceforge.net/
8+
9+
Updated for unittest test discovery by Mark Roddy and Python 3
10+
support by Brian Curtin.
11+
12+
For details on how to make your tests work with test discovery,
13+
and for explanations of the configuration options, see the unittest
14+
documentation:
15+
16+
http://docs.python.org/library/unittest.html#test-discovery

0 commit comments

Comments
 (0)