Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the differences among PloneTestCase, plone.testing and plone.app.testing packages?

Tags:

zope

plone

What are the differences among PloneTestCase, plone.testing and plone.app.testing packages?

By the way, is PloneTestCase not recommended for testing new Plone 4 products?

like image 311
Leonardo Andrade Avatar asked May 09 '13 20:05

Leonardo Andrade


2 Answers

PloneTestCase is an older product. It's still used by many packages, but it is more cumbersome, more error prone, and less well documented than plone.testing and plone.app.testing.

plone.testing and plone.app.testing are complementary. The former implements low-level primitives that are not dependent on Plone-the-CMS for managing test layers and testing Zope applications. The latter provides the glue to set up a Plone site in an integration test.

If you read the plone.app.testing docs, you should get everything you need.

like image 133
optilude Avatar answered Sep 24 '22 23:09

optilude


plone.app.testing contains the parts that are specific to Plone package development; plone.testing is generic and can be used independently of Plone. plone.app.testing builds on top of plone.testing.

Both packages are the new generation of test support libraries. PloneTestCase is the older generation.

In particular, the layers support is much improved in plone.testing.

like image 26
Martijn Pieters Avatar answered Sep 23 '22 23:09

Martijn Pieters