2009-04-02 15:10:16 +08:00
2009-08-04 18:00:04 +08:00
pylib 1.0.0 released: testing-with-python innovations continue
--------------------------------------------------------------------
2009-04-02 19:16:41 +08:00
2009-08-04 18:00:04 +08:00
Took a few betas but finally i uploaded a `1.0.0 py lib release`_,
featuring the mature and powerful py.test tool and "execnet-style"
*elastic* distributed programming. With the new release, there are
many new advanced automated testing features - here is a quick summary:
2009-04-02 19:16:41 +08:00
2009-08-04 18:00:04 +08:00
* funcargs_ - pythonic zero-boilerplate fixtures for Python test functions :
2010-07-27 03:15:15 +08:00
- totally separates test code, test configuration and test setup
2009-07-21 00:54:08 +08:00
- ideal for integration and functional tests
2009-08-04 18:00:04 +08:00
- allows for flexible and natural test parametrization schemes
2009-07-21 00:54:08 +08:00
2010-07-27 03:15:15 +08:00
* new `plugin architecture`_, allowing easy-to-write project-specific and cross-project single-file plugins. The most notable new external plugin is `oejskit`_ which naturally enables **running and reporting of javascript-unittests in real-life browsers**.
2009-07-21 00:54:08 +08:00
2009-08-04 18:00:04 +08:00
* many new features done in easy-to-improve `default plugins`_, highlights:
2009-04-02 15:10:16 +08:00
2009-08-04 18:00:04 +08:00
* xfail: mark tests as "expected to fail" and report separately.
2010-07-27 03:15:15 +08:00
* pastebin: automatically send tracebacks to pocoo paste service
2009-08-04 18:00:04 +08:00
* capture: flexibly capture stdout/stderr of subprocesses, per-test ...
* monkeypatch: safely monkeypatch modules/classes from within tests
2010-07-27 03:15:15 +08:00
* unittest: run and integrate traditional unittest.py tests
2009-08-04 18:00:04 +08:00
* figleaf: generate html coverage reports with the figleaf module
2010-07-27 03:15:15 +08:00
* resultlog: generate buildbot-friendly reporting output
2009-08-04 18:00:04 +08:00
* ...
2009-06-24 23:47:29 +08:00
2010-07-27 03:15:15 +08:00
* `distributed testing`_ and `elastic distributed execution`_:
2009-06-27 00:12:06 +08:00
2010-07-27 03:15:15 +08:00
- new unified "TX" URL scheme for specifying remote processes
- new distribution modes "--dist=each" and "--dist=load"
- new sync/async ways to handle 1:N communication
- improved documentation
2009-06-26 23:48:46 +08:00
2009-08-04 18:00:04 +08:00
The py lib continues to offer most of the functionality used by
2010-07-27 03:15:15 +08:00
the testing tool in `independent namespaces`_.
2009-06-24 23:47:29 +08:00
2009-08-04 18:00:04 +08:00
Some non-test related code, notably greenlets/co-routines and
api-generation now live as their own projects which simplifies the
2010-07-27 03:15:15 +08:00
installation procedure because no C-Extensions are required anymore.
2009-06-24 23:47:29 +08:00
2009-08-04 18:00:04 +08:00
The whole package should work well with Linux, Win32 and OSX, on Python
2010-07-27 03:15:15 +08:00
2.3, 2.4, 2.5 and 2.6. (Expect Python3 compatibility soon!)
2009-04-02 15:10:16 +08:00
2010-07-27 03:15:15 +08:00
For more info, see the py.test and py lib documentation:
2009-04-02 15:10:16 +08:00
2009-08-04 18:00:04 +08:00
http://pytest.org
2009-06-27 00:12:06 +08:00
2009-08-04 18:00:04 +08:00
http://pylib.org
2009-06-24 23:47:29 +08:00
2010-07-27 03:15:15 +08:00
have fun,
2009-04-02 19:16:41 +08:00
holger
2009-04-02 15:10:16 +08:00
2009-08-04 18:00:04 +08:00
.. _`independent namespaces`: http://pylib.org
.. _`funcargs`: http://codespeak.net/py/dist/test/funcargs.html
.. _`plugin architecture`: http://codespeak.net/py/dist/test/extend.html
.. _`default plugins`: http://codespeak.net/py/dist/test/plugin/index.html
.. _`distributed testing`: http://codespeak.net/py/dist/test/dist.html
.. _`elastic distributed execution`: http://codespeak.net/py/dist/execnet.html
2010-07-27 03:15:15 +08:00
.. _`1.0.0 py lib release`: http://pypi.python.org/pypi/py
2009-08-04 18:00:04 +08:00
.. _`oejskit`: http://codespeak.net/py/dist/test/plugin/oejskit.html