I'm following the steps on
https://docs.plone.org/develop/addons/index.html#create-a-package
to set up an environment to develop a content type product addon.
My basic setup is the latest stable Plone 5.0.7 setup by the unified installer. I choosed this setup, because i just want to set up a simple site with an own theme and one simple new content type - not much programming, not much Plone extending planned, just taking the latest stable and do some simple steps to extend it.
It looks to me that the documentation for extending Plone with own themes/products is focused around a special development environment i do not have with my setup. I did extend my buildout.cfg with the develop.cfg like so:
bin/buildout -c develop.cfg
This works, but when i want to run the pre-generated tests in the mr.bob created template product:
bin/test -s collective.shoparticle -t test_shoparticle.robot --all
i get the following error, test suite related:
Test-module import failures:
Module: collective.shoparticle.tests.test_robot
Traceback (most recent call last):
File "/usr/local/Plone5/zeocluster/src/collective.shoparticle/src/collective/shoparticle/tests/test_robot.py", line 2, in
from plone.app.testing import ROBOT_TEST_LEVEL
ImportError: No module named testing
Module: collective.shoparticle.tests.test_setup
Traceback (most recent call last):
File "/usr/local/Plone5/zeocluster/src/collective.shoparticle/src/collective/shoparticle/tests/test_setup.py", line 4, in
from collective.shoparticle.testing import COLLECTIVE_SHOPARTICLE_INTEGRATION_TESTING # noqa
File "/usr/local/Plone5/zeocluster/src/collective.shoparticle/src/collective/shoparticle/testing.py", line 2, in
from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FIXTURE
File "/usr/local/Plone5/buildout-cache/eggs/plone.app.contenttypes-1.2.22-py2.7.egg/plone/app/contenttypes/testing.py", line 4, in
from plone.app.event.testing import PAEvent_FIXTURE
File "/usr/local/Plone5/buildout-cache/eggs/plone.app.event-2.0.12-py2.7.egg/plone/app/event/testing.py", line 3, in
from plone.app.robotframework.testing import AUTOLOGIN_LIBRARY_FIXTURE
ImportError: No module named robotframework.testing
Module: collective.shoparticle.tests.test_shoparticle
Traceback (most recent call last):
File "/usr/local/Plone5/zeocluster/src/collective.shoparticle/src/collective/shoparticle/tests/test_shoparticle.py", line 3, in
from plone.app.testing import setRoles
ImportError: No module named testing
Test-modules with import problems:
collective.shoparticle.tests.test_robot
collective.shoparticle.tests.test_setup
collective.shoparticle.tests.test_shoparticle
Total: 0 tests, 0 failures, 3 errors, 0 skipped in 0.000 seconds.
I'm willing to help to improve plone and its docs/addons, so please tell me what do you think of my approach: installing plone via the latest stable unified installer, and develop an addon-product on the filesystem, is this the right approach? Or should i better install everything with a special development buildout inside the generated packages ? So both ways are possible, but should both be documented ? Or should people like me be more directed into using a development install ?
I do not want to develop plone itself, i just want to set up a latest stable, develop a theme and a simple product. That "should" work in my eyes. So what do you think?