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: Running tests via: /opt/Plone-3.0.5/Python-2.4.4/bin/python /opt/Plone-3.0.5/bin/test.py -v --config-file /opt/Plone-3.0.5/zinstance/etc/zope.conf -s Products.MyImage Parsing /opt/Plone-3.0.5/zinstance/etc/zope.conf Running tests at level 1 Installing CMFCore ... done (0.042s) Installing CMFDefault ... done (0.093s) Installing CMFCalendar ... done (0.059s) Installing CMFTopic ... done (0.037s) Installing DCWorkflow ... done (0.086s) Installing CMFActionIcons ... done (0.047s) Installing CMFQuickInstallerTool ... done (0.110s) Installing CMFFormController ... done (0.472s) Installing GroupUserFolder ... done (0.583s) Installing ZCTextIndex ... done (0.092s) Installing CMFPlone ... done (2.140s) Installing Archetypes ... done (0.139s) Installing ATContentTypes ... done (0.051s) Installing ATReferenceBrowserWidget ... done (0.026s) Installing CMFDynamicViewFTI ... done (0.024s) Installing ExternalEditor ... done (0.036s) Installing ExtendedPathIndex ... done (0.033s) Installing ResourceRegistries ... done (0.029s) Installing SecureMailHost ... done (0.025s) Installing CMFPlacefulWorkflow ... done (0.033s) Installing PasswordResetTool ... done (0.034s) Installing PluggableAuthService ... done (0.045s) Installing PluginRegistry ... done (0.024s) Installing PlonePAS ... done (0.036s) Installing kupu ... done (0.503s) Installing CMFEditions ... done (0.042s) Installing CMFDiffTool ... done (0.038s) Installing PloneLanguageTool ... done (0.041s) Installing MyImage ... done (0.111s) Running Products.PloneTestCase.layer.PloneSite tests: /opt/Plone-3.0.5/lib/python/zope/configuration/xmlconfig.py:323: DeprecationWarning: zope.app.annotation has moved to zope.annotation. Import of zope.app.annotation will become unsupported in Zope 3.5 __import__(arguments[0]) Set up Products.PloneTestCase.layer.ZCML in 4.844 seconds. /opt/Plone-3.0.5/zinstance/Products/PlonePAS/setuphandlers.py:39: DeprecationWarning: portal_groups.getGroupIds is deprecated and will be removed in Plone 3.5. Use PAS searchGroups instead existing = gtool.listGroupIds() This is driving me nuts, can anyone help? Is my model OK? Is this a bug in AGX? in Plone? I've been able to replicate this problem in unbuntu (feisty and dapper) and in windows xp. Am I missing something? 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--tp15071535s20094p15071535.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
