I nailed down the problem. There's a bug (I guess) in AGX. In the tests/PloneTestcase.py template, it's adding Archetypes to the lists of products to install when it calls PloneTestCase.setupPloneSite() [line 23]. I don't know why it's doing this, but if I remove that line from the template, the tests run as expected.
I plan to submit a patch to AGX, but I'm not sure if that line is necessary. I figure there had to be a reason why it was there in the first place. Can anyone suggest why this may have been there? Thanks, JJ jjmojojjmojo wrote: > > I'm having trouble generating unit and functional tests in AGX 2.0-beta9. > When I run the attached simple UML diagram through AGX, the code in > generated without issue. When I deploy the product in a plone instance, it > works as expected. I'm using Plone 3.0.5. > > The problem I'm having is that when I run the unit tests (using > bin/instance test -s Products.MyImage or > /opt/Plone-3.0.5/zinstance/bin/zopectl test -s Products.MyImage), I get > the following output, and then the process just hangs: > > [snip] > > http://www.nabble.com/file/p15071535/MyImage.zargo MyImage.zargo > -- View this message in context: http://www.nabble.com/ArchGenXML-Generating-Tests---Bug-or-User-Error--tp15071535s20094p15095031.html Sent from the Product Developers mailing list archive at Nabble.com. _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
