[TIP] ANN: dutest 0.2.3 released ! WAS: New! Writing doctests for Trac plugins
Olemis Lang
olemis at gmail.com
Fri Jan 15 13:05:23 PST 2010
On Mon, Dec 28, 2009 at 2:44 PM, Olemis Lang <olemis at gmail.com> wrote:
> On Tue, Jul 21, 2009 at 12:51 AM, Chris Heller
> <chris.heller.greysparling at gmail.com> wrote:
>>
>> There are numerous plugins on trac-hacks that have unittest based
>> tests.
>
> Thanks all for your suggestions and comments.
>
> I have been preparing the next release (coming soon ;o) of TracGviz
> 1.4.1 and I've been (finally) able to publish the repos [1]_
> containing most of the work been done so far. In there (`providers`
> branch) you can find the doctests I've written to test Trac RPC
> handlers. All this has been implemented on top of `dutest` module and
> is the first instance (that I know ... CMIIW) of both a dutest-based
> framework for particular purposes thus hiding details about
> initialization and cleanup , and a framework to write doctests for
> Trac plugins.
>
I have released recently the version of dutest (0.2.3) employed to
implement the ultra-mini-framework to use doctests with Trac plugins.
It is available now and contains some bug fixes I should have
published since long time ago ... Below you can find the new features
included.
Enjoy ! Feedback is welcome !
What's new in version 0.2.3:
----------------------------
- Implemented ``Suite Fixture Setup`` test pattern (i.e. set up a fixture
once before all its interactive examples are run and clean up after
they all have been run. (Especially useful for the Trac ultra-mini-framework
in order to use a single global Trac environment for testing ;o)
- Module is hidden in tracebacks written to instances of `TestResult`
when a failure or an error is detected.
- Support for multiple pattern matching styles has been added in
**PackageTestLoader** trough ``style`` parameter. By default standard
regular expressions (i.e. ``style=REGEX``) are used.
- Unix filename pattern matching (``fnmatch`` module) is available from
now on while using **PackageTestLoader**. The only thing needed is
to specify ``style=UNIX``.
- Multiple functions in previous versions contained arguments having
mutable objects as default values. A
`message about default args sent to TiP list`_ explains why this is
really harmful. This has been fixed. Thanks to
Scott David Daniels `for reporting the issue with default args`_
and Jesse Noller for `the pointers about default args`_ .
.. _message about default args sent to TiP list:
http://lists.idyll.org/pipermail/testing-in-python/2009-April/001617.html
.. _for reporting the issue with default args:
http://lists.idyll.org/pipermail/testing-in-python/2009-April/001606.html
.. _the pointers about default args:
http://lists.idyll.org/pipermail/testing-in-python/2009-April/001620.html
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
hgtv design star application Direct Download :. FileChaos.com .: -
http://feedproxy.google.com/~r/TracGViz-full/~3/o-eDMK37aWg/hgtv-design-star-application.html
More information about the testing-in-python
mailing list