[Product-Developers] unit test on Plone 4.0b1

Wichert Akkerman wichert at wiggy.net
Sat Mar 20 12:14:10 UTC 2010


On 3/20/10 13:03 , leejason wrote:
>
> Hi,
>
> Does anybody know how to do unit test on Plone 4.0b1? My current effort is
> based on the following:
>
>
> http://plone.org/documentation/kb/testing/writing-a-plonetestcase-unit-integration-test

That does not show unit tests, but integration tests. There is a big 
difference.

> and I adjusted to add the following to my buildout.cfg:
>
>    [test]
>    recipe = zc.recipe.testrunner
>    eggs =
>        ${instance:eggs}
>        myproduct.contenttype

Don't list ${instance:eggs} there, only the packages that you want to 
test. Make sure myproduct.contenttype depends on the Plone package so 
all the dependencies are pulled in properly.

Wichert.




More information about the Product-Developers mailing list