What are the best practices on setting up tests to run under Plone 5.0?
I have a bunch of add-ons with tests failing in CI because no content types are available; do I have to manually install plone.app.contenttypes? anything else?
What are the best practices on setting up tests to run under Plone 5.0?
I have a bunch of add-ons with tests failing in CI because no content types are available; do I have to manually install plone.app.contenttypes? anything else?
you have to include the plone.app.contenttypes:default profile (at least that's what I have to do with robot-testing)
look at how a addon created with bobtemplates.plone for plone5 does it. Basically you use the fixure plone.app.contenttypes.testing.PLONE_APP_CONTENTTYPES_FIXTURE
thanks for your comments guys; I'm now having issues because I can't maintain compatibility with Plone 4.2 by adding a dependency on plone.app.contenttypes
on setup.py
, so I ended up by adding an uggly hack on .travis.yml
:
if someone has a better idea, let me know.