ZopeTestCase (0.9.8)
- ZopeTestCase download link: http://www.zope.org/Members/shh/ZopeTestCase/0.9.8
- Homepage of ZopeTestCase: http://www.zope.org/Members/shh/ZopeTestCase
ZopeTestCase has features to support a wide range of test scenarios, from small unit tests to running regression suites against existing ZODBs. It supports testing in INSTANCE_HOME situations and is fully testrunner compatible. The idea is to make Zope testing as simple as possible. No more GuruWritesTests!
ZopeTestCase is an attempt to make writing unit and regression tests in Zope a more rewarding experience. The package deals with all the plumbing required, and leaves the programmer with writing the tests - and the tests only. It is built on PyUnit? and the Testing package coming with Zope.
ZopeTestCase provides a Zope sandbox to every test. This sandbox comes fully equipped with ZODB connection, root application object, and REQUEST. When writing tests you have complete control over Zope, the way you have from a Python product. The framework is easily customized and can be adapted to virtually every conceivable test situation. What you can test with ZTC: Basically everything. Including security, transactions, sessions, web access, ... What you cannot test with ZTC: Web forms and user interaction. This should be left to FunctionalTests?.