view eclipse/com.redhat.thermostat.eclipse/META-INF/MANIFEST.MF @ 607:c95ca376c9af

Enable Eclipse plug-in tests during build. What this patch does: * Wraps a few dependencies (hamcrest, objenenis, mockito). I had to do this in order to get a working mockito. This is using hamcrest 1.3 in order to avoid uses conflicts of packages imported from mockito via Import-Package. Eclipse ships junit, which depends on hamcrest 1.1.0. Since during Eclipse plug-in test runs those bundles are loaded I can only guess that this is what produced the uses conflict when using mockito-all or mockito from springsource. Unfortunately no good diagnostics from equinox. That's why I think mockito-all or mockito from com.springsource was a no-go. * Creates a local p2 repository with those wrapped bundles with proper metadata so they can be used during build. * The (only) eclipse plug-in which contains tests (com.redhat.thermostat.eclipse.test) optionally imports those wrapped bundles. This allows us to run tests on Fedora whith stock libs (bundles are resolved only via Import-Package there, optional bundles are ignored). * It attaches the tycho surefire "test" goal to the "package" lifecycle phase so that tests are actually run with "mvn clean package" (default is to attach to integration-test only). * Added README.building with instructions as to how to build and run tests. Building Eclipse bits and run tests works as follows: $ cd path/to/$THERMOSTAT_HOME $ mvn clean install $ cd eclipse/test-deps-bundle-wrapping $ mvn clean install $ cd .. $ mvn clean package Reviewed-by: vanaltj Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-September/003074.html
author Severin Gehwolf <sgehwolf@redhat.com>
date Thu, 13 Sep 2012 10:42:48 +0200
parents 7f564b061056
children
line wrap: on
line source

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Thermostat Eclipse Client
Bundle-Activator: com.redhat.thermostat.eclipse.Activator
Bundle-SymbolicName: com.redhat.thermostat.eclipse;singleton:=true
Bundle-Version: 0.4.0.qualifier
Bundle-Vendor: Red Hat Inc.
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.core.runtime,
 org.eclipse.ui
Import-Package: com.mongodb,
 com.redhat.thermostat.common,
 com.redhat.thermostat.common.appctx,
 com.redhat.thermostat.common.config,
 com.redhat.thermostat.common.dao,
 com.redhat.thermostat.common.model,
 com.redhat.thermostat.common.storage
Export-Package: com.redhat.thermostat.eclipse;x-friends:=com.redhat.thermostat.eclipse.test,
 com.redhat.thermostat.eclipse.model;x-friends:=com.redhat.thermostat.eclipse.test,
 com.redhat.thermostat.eclipse.views;x-friends:=com.redhat.thermostat.eclipse.test