plone.app.event tests and Plone5

Johannes Raggam <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <1374149279.2294.25.camel@luft>
Plone 5 will have the Archetypes dependencies removed and defaults to
Dexterity, which is a good thing.
plone.app.event is compatible with Plone 4.2, 4.3 and the current 5.0.

plone.app.event has Archetypes and Dexterity support, but is designed in
a way, that either feature is only enabled, if it's available. So you
can install plone.app.event's Dexterity implementation without any
Archetypes support, the other way around or both at once.

Just the tests don't run on the buildout.coredev 5.0 branch.
plone.app.event's tests rely on both Archetypes and Dexterity installed
at once. Far ago, we even had the tests split up into the Archetypes and
Dexterity subpackages, but the testrunner (IIRC) didn't find the tests
in the .at and .dx subpackages of plone.app.event. So I merged all of
them into the tests subdirectory. This should not be an issue any more,
so we can split up again.

The tests merger beats me now a bit. plone.app.event doesn't run with
the current master branch of plone.app.testing, where the Archetypes
support is removed.

The tests have to be split up again, but in the meanwhile
plone.app.event depends on plone.app.testing<=4.2.2, see:
https://github.com/plone/plone.app.event/commit/68c5482fd5b55f6b4b660428ed53b01b8e989911
https://github.com/plone/buildout.coredev/commit/ef7b7e82ecc0b5d3a4c8fd37b6434676d6d02086


I won't fix this in the very short term as I'm on vacation for the next
two weeks.
If someone is eager to help out and fix it while I'm on the beach, that
would be very nice. You'd have to know this: I've created an abstract
test class which concrete test classes can subclass and which creates a
sample data set to run the tests with. See:
- plone.app.event.tests.base_setup.AbstractSampleDataEvents
Examples:
- plone.app.event.tests.test_events_listing.TestsEventsListingDX
And some of the tests in:
- plone.app.event.tests.test_base_module
Not all tests are converted to use AbstractSampleDataEvents.


Have a nice time,
Johannes


-- 
programmatic  web development
di(fh) johannes raggam / thet
python plone zope development
mail: office-//[email protected]
web:  http://programmatic.pro
      http://bluedynamics.com

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEABECAAYFAlHn2p8ACgkQW4mNMQxDgAfm/QCfQ8uMAcoRhOyq+ywNEmbpY3Xq
fCgAnRkJsIQNtza8SeyO6YUctB8HggPy
=mB99
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.