view eclipse/com.redhat.thermostat.eclipse.test/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-Version: 0.4.0.qualifier
Bundle-Name: Eclipse client tests
Bundle-Activator: com.redhat.thermostat.eclipse.test.Activator
Bundle-SymbolicName: com.redhat.thermostat.eclipse.test;singleton:=true
Bundle-Vendor: Redhat Inc.
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.junit;bundle-version="4.10.0",
 com.redhat.thermostat.bundles.org.hamcrest.core;resolution:=optional,
 com.redhat.thermostat.bundles.org.objenesis;resolution:=optional,
 com.redhat.thermostat.bundles.org.mockito.mockito-core;resolution:=optional
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: com.redhat.thermostat.common,
 com.redhat.thermostat.common.dao,
 com.redhat.thermostat.eclipse.model,
 org.eclipse.core.resources,
 org.eclipse.ui.ide,
 org.mockito,
 org.mockito.stubbing
Export-Package: com.redhat.thermostat.eclipse.test.model