<tired-rant>
I'm fed up with Pax Exam and would love to replace it as the
hibernate-osgi integration test harness. Most of the Karaf committers
I've been working with hate it more than I do. Every single time we
upgrade the Karaf version, something less-than-minor in hibernate-osgi,
upgrade/change dependencies, or attempt to upgrade Pax Exam itself,
there's some new obfuscated failure. And no matter how much I pray, it
refuses to let us get to the container logs to figure out what
happened. Tis a house of cards.
</tired-rant>
One alternative that recently came up elsewhere: use Docker to bootstrap
the container, hit it with our features.xml, install a test bundle that
exposes functionality externally (over HTTP, Karaf commands, etc), then
hit the endpoints and run assertions.
Pros: true "integration test", plain vanilla Karaf, direct access to all
logs, easier to eventually support and test other containers.
Cons: Need Docker installed for local test runs, probably safer to
isolate the integration test behind a disabled-by-default Maven profile.
Any gut reactions?
OSGi is fun and I'm not at all bitter,
-Brett-
;)