Well, I ran the tests again and they all ran fine. I don't have an output anymore, and I'm totally confused.
My last post was poorly written. The first output should have been '2 test, 0 failures', and the second '8 tests, 6 failures', The test failures were the anticipated result. In Aspeli's book he has us write the test first, confirm that the tests fail, then add the functionality to satisfy the tests. My problem is that as I added subsequent tests to my test_setup.py file, then ran 'bin/instance test -s optilux.policy', the new test didn't register. *I think* my question is: do you have to reinstall the product (or rerun buildout, or refresh in any way) after you add new tests to test_setup.py? Here's the output of the functioning tests. Running tests at level 1 Installing CMFCore ... done (0.567s) Installing CMFDefault ... done (0.274s) Installing CMFCalendar ... done (0.041s) Installing CMFTopic ... done (0.042s) Installing DCWorkflow ... done (0.061s) Installing CMFActionIcons ... done (0.033s) Installing CMFQuickInstallerTool ... done (0.080s) Installing CMFFormController ... done (0.286s) Installing GroupUserFolder ... done (0.325s) Installing ZCTextIndex ... done (0.085s) Installing CMFPlone ... done (2.881s) Installing Archetypes ... done (0.092s) Installing ATContentTypes ... done (0.039s) Installing ATReferenceBrowserWidget ... done (0.009s) Installing CMFDynamicViewFTI ... done (0.008s) Installing ExternalEditor ... done (0.055s) Installing ExtendedPathIndex ... done (0.022s) Installing ResourceRegistries ... done (0.016s) Installing SecureMailHost ... done (0.014s) Installing CMFPlacefulWorkflow ... done (0.061s) Installing PasswordResetTool ... done (0.028s) Installing PluggableAuthService ... /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile PluggableAuthService:simple taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile PluggableAuthService:empty taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) done (0.050s) Installing PluginRegistry ... done (0.031s) Installing PlonePAS ... done (0.030s) Installing kupu ... done (0.271s) Installing CMFEditions ... done (0.025s) Installing CMFDiffTool ... done (0.030s) Installing PloneLanguageTool ... done (0.032s) Installing SimpleAttachment ... done (0.038s) Installing RichDocument ... done (0.066s) Running Products.PloneTestCase.layer.PloneSite tests: /home/harveyk/Plone/optilux/parts/zope2/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]) /home/harveyk/Plone/optilux/parts/zope2/lib/python/zope/configuration/fields.py:417: UserWarning: You did not specify an i18n translation domain for the 'description' field in /home/harveyk/Plone/optilux/parts/productdistros/RichDocument/configure.zcml warnings.warn( /home/harveyk/Plone/optilux/parts/zope2/lib/python/zope/configuration/fields.py:417: UserWarning: You did not specify an i18n translation domain for the 'title' field in /home/harveyk/Plone/optilux/parts/productdistros/RichDocument/configure.zcml warnings.warn( /home/harveyk/Plone/optilux/parts/zope2/lib/python/zope/configuration/fields.py:417: UserWarning: You did not specify an i18n translation domain for the 'description' field in /home/harveyk/Plone/optilux/parts/productdistros/SimpleAttachment/configure.zcml warnings.warn( /home/harveyk/Plone/optilux/parts/zope2/lib/python/zope/configuration/fields.py:417: UserWarning: You did not specify an i18n translation domain for the 'title' field in /home/harveyk/Plone/optilux/parts/productdistros/SimpleAttachment/configure.zcml warnings.warn( /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFActionIcons:actionicons taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFCalendar:default taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFCalendar:skins_support taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFDefault:default taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFDefault:views_support taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFDefault:sample_content taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFDiffTool:CMFDiffTool taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFTopic:default taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.CMFUid:default taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.DCWorkflow:revision2 taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.MimetypesRegistry:MimetypesRegistry taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.PortalTransforms:PortalTransforms taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.RichDocument:default taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) /home/harveyk/Plone/optilux/parts/plone/GenericSetup/registry.py:744: DeprecationWarning: Version for profile Products.SimpleAttachment:SimpleAttachment taken from version.txt. This is deprecated behaviour and will be removed in GenericSetup 1.5: please specify the version in metadata.xml. DeprecationWarning) Set up Products.PloneTestCase.layer.ZCML in 6.055 seconds. Installing optilux.theme ... done (0.028s) Installing optilux.policy ... done (0.028s) /home/harveyk/Plone/optilux/parts/plone/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() Set up Products.PloneTestCase.layer.PloneSite in 8.990 seconds. Running: ........... Ran 11 tests with 0 failures and 0 errors in 0.086 seconds. -- View this message in context: http://n2.nabble.com/Added-tests-won%27t-run-tp838823p1076145.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
