tycho-surefire-plugin

Add Fragment to tycho-surefire-plugin

会有一股神秘感。 提交于 2021-02-10 16:39:37
问题 I want to start a fragment with the tycho-surefire-plugin . Simple, right? <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-surefire-plugin</artifactId> <version>${tycho-version}</version> <configuration> <providerHint>junit4</providerHint> <dependencies> <!-- I want to add my fragment here --> </dependencies> </configuration> </plugin> However, due to the missing documentation (or maybe it's hidden) I can't figure out what to enter: <!-- this works for a plug-in -->

Which dependencies do I need to use Mockito and JUnit in an Eclipse RCP Tycho project

旧城冷巷雨未停 提交于 2019-12-21 08:00:11
问题 This is my current test fragment: <packaging>eclipse-test-plugin</packaging> <dependencies> <dependency> <groupId>org.junit</groupId> <artifactId>com.springsource.org.junit</artifactId> <version>4.7.0</version> </dependency> </dependencies> with the following plugins configuration: <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-surefire-plugin</artifactId> <version>${tycho.version}</version> <configuration> <dependencies> <dependency> <type>p2-installable-unit</type>

Is it possible to configure tycho-surefire to run in the test phase?

痞子三分冷 提交于 2019-12-08 17:28:39
问题 I haven't done a lot with Maven, but I understand the basics. We're using Tycho to build RCP plugins and I'm wondering why Tycho uses the integration-test phase to execute the tests in a bundle. Is it possible to bind some types of tests to the test phase of Maven for Tycho instead of the integration-test phase? If so, how? 回答1: Tycho executes tests in an OSGi container, and this requires that the compiled classes are already packed as OSGi bundles. Packing only happens in the package phase,

“An unexpected error occured (return code -1)” when trying to launch SWTBot test suite with Tycho

走远了吗. 提交于 2019-12-08 11:52:30
问题 We are writing SWTBot tests for our Eclipse RCP application. Our RCP application includes NatTable components and has authorization mechanism to enable/disable perspectives. The test suite is working fine when launching it from Eclipse. Now we are trying to integrate it with Tycho. This is the pom.xml created for running the SWTBot test suite: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"

Which dependencies do I need to use Mockito and JUnit in an Eclipse RCP Tycho project

☆樱花仙子☆ 提交于 2019-12-04 02:29:43
This is my current test fragment: <packaging>eclipse-test-plugin</packaging> <dependencies> <dependency> <groupId>org.junit</groupId> <artifactId>com.springsource.org.junit</artifactId> <version>4.7.0</version> </dependency> </dependencies> with the following plugins configuration: <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-surefire-plugin</artifactId> <version>${tycho.version}</version> <configuration> <dependencies> <dependency> <type>p2-installable-unit</type> <artifactId>org.eclipse.equinox.ds</artifactId> </dependency> <dependency> <type>p2-installable-unit</type>