[Product-Developers] Problem with PTC test setup/now 'roadrunner issue

Andreas Jung lists at zopyx.com
Sun Jun 14 12:41:04 UTC 2009


Next issue is now using roadrunner. I followed the roadrunner
instructions on PyPI and
I get the following strange error when running roadrunner:

ajung at blackmoon:/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk>
bin/roadrunner  -s vs.event
Preloading Plone ...
Installing CMFCore ... done (0.234s)
Installing CMFDefault ... done (0.152s)
Installing CMFCalendar ... done (0.025s)
Installing CMFTopic ... done (0.013s)
Installing DCWorkflow ... done (0.034s)
Installing CMFActionIcons ... done (0.013s)
Installing CMFQuickInstallerTool ... done (0.038s)
Installing CMFFormController ... done (0.220s)
Installing GroupUserFolder ... done (0.249s)
Installing ZCTextIndex ... done (0.033s)
Installing CMFPlone ... done (1.571s)
Installing Archetypes ... done (0.192s)
Installing ATContentTypes ... done (0.031s)
Installing ATReferenceBrowserWidget ... done (0.009s)
Installing CMFDynamicViewFTI ... done (0.009s)
Installing ExternalEditor ... done (0.010s)
Installing ExtendedPathIndex ... done (0.011s)
Installing ResourceRegistries ... done (0.009s)
Installing SecureMailHost ... done (0.009s)
Installing CMFPlacefulWorkflow ... done (0.039s)
Installing PasswordResetTool ... done (0.011s)
Installing PluggableAuthService ... done (0.015s)
Installing PluginRegistry ... done (0.012s)
Installing PlonePAS ... done (0.014s)
Installing kupu ... done (0.194s)
Installing CMFEditions ... done (0.017s)
Installing CMFDiffTool ... done (0.014s)
Installing PloneLanguageTool ... done (0.014s)
  Set up Products.PloneTestCase.layer.ZCML in 2.974 seconds.
  Set up Products.PloneTestCase.layer.PloneSite in 7.064 seconds.
Preloading took: 13.544 seconds.
Running tests at level 1
Installing vs.event ... NOT FOUND
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Running Products.PloneTestCase.layer.PloneSite tests:
2009-06-14 14:37:50 ERROR GenericSetup Unknown step in dependency chain:
'profile-vs.event:default'
  Set up Products.PloneTestCase.layer.PloneSite
Traceback (most recent call last):
  File "bin/roadrunner", line 77, in ?
    roadrunner.runner.plone(zope_conf, preload_modules,
packages_under_test, zope2_location, buildout_home, part_dir)
  File
"/home/ajung/.buildout/eggs/roadrunner-0.2.2-py2.4.egg/roadrunner/runner.py",
line 88, in plone
    setup_layers=setup_layers)
  File
"/home/ajung/.buildout/eggs/roadrunner-0.2.2-py2.4.egg/roadrunner/testrunner.py",
line 273, in run
    failed = not run_with_options(options, setup_layers=setup_layers)
  File
"/home/ajung/.buildout/eggs/roadrunner-0.2.2-py2.4.egg/roadrunner/testrunner.py",
line 436, in run_with_options
    setup_layers, failures, errors)
  File
"/home/ajung/.buildout/eggs/roadrunner-0.2.2-py2.4.egg/roadrunner/testrunner.py",
line 607, in run_layer
    setup_layer(layer, setup_layers)
  File
"/home/ajung/.buildout/eggs/roadrunner-0.2.2-py2.4.egg/roadrunner/testrunner.py",
line 695, in setup_layer
    layer.setUp()
  File
"/data/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk/parts/plone/PloneTestCase/layer.py",
line 33, in setUp
    func(*args, **kw)
  File
"/data/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk/parts/plone/PloneTestCase/setup.py",
line 167, in setupPloneSite
    base_profile, extension_profiles).run()
  File
"/data/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk/parts/plone/PloneTestCase/setup.py",
line 213, in run
    self._setupProfiles()
  File
"/data/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk/parts/plone/PloneTestCase/setup.py",
line 281, in _setupProfiles
    setup.runAllImportStepsFromProfile(profile_id)
  File
"/data/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk/parts/plone/GenericSetup/tool.py",
line 390, in runAllImportStepsFromProfile
    ignore_dependencies=ignore_dependencies)
  File
"/data/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk/parts/plone/GenericSetup/tool.py",
line 1155, in _runImportStepsFromContext
    chain = self.getProfileDependencyChain( profile_id )
  File
"/data/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk/parts/plone/GenericSetup/tool.py",
line 1135, in getProfileDependencyChain
    dependencies = self.getDependenciesForProfile( profile_id )
  File
"/data/develop/repository/ext1.svn.banality.de/vs.event/buildout/trunk/parts/plone/GenericSetup/tool.py",
line 911, in getDependenciesForProfile
    raise KeyError, profile_id
KeyError: 'profile-vs.event:default'


The current test code looks like this:

PloneTestCase.installProduct('vs.event')
PloneTestCase.setupPloneSite(extension_profiles=('vs.event:default',))

@onsetup
def setup_package():

  ZopeTestCase.installPackage('vs.event')
  zcml.load_config('configure.zcml', vs.event)

setup_package()

class TestBase(PloneTestCase.FunctionalTestCase):

    def afterSetUp(self):
        ZopeTestCase.utils.setupCoreSessions(self.app)
#        zcml.load_config('configure.zcml', vs.event)
        self.membership = self.portal.portal_membership
        self.membership.addMember('god', 'secret', ['Manager'], [])

class VSEventTest(TestBase):

    def testCalendarToolCheck(self):
        pc = self.portal.portal_calendar
        self.assertEqual(pc.meta_type, 'Chronos Calendar Tool')


Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090614/b7959978/attachment.vcf>


More information about the Product-Developers mailing list