Questions tagged [tycho-surefire-plugin]

The Tycho plugin for Maven is able to execute Eclipse RCP test bundles within an OSGi environment.

Maven projects typically have separate test source directories in the same project. The Eclipse convention, however, is to have a separate test bundle (often a fragment of the host/target plugin with the suffix ".tests"). Tycho introduces a new eclipse-test-plugin packaging type to represent such projects. Build behavior is like regular Eclipse plugins, but these are treated specially at test-time.

The packaging type specified in the pom.xml of a test fragment should be eclipse-test-plugin, and the tycho-surefire-plugin will run them in the integration-test phase of the build.

Useful Links

Official Plugin Documentation

eclipse-test-plugin Packaging Type Reference

45 questions
2
votes
1 answer

Why tycho-surefire-plugin:test considers Bundle-ClassPath instead of bin.includes?

In my eclipse plugin project. I have a specific jar that I need it to be visible in the build process specially in test phase, However I don't need it to be visible in runtime of the eclipse plugin. I find that tycho-surefire-plugin is using the…
Moemen
  • 364
  • 3
  • 11
2
votes
1 answer

Maven tycho-surefire-plugin fails with return code 13

I have a OSGI-bundle and now want to create a testing bundle for it. As the existing bundle uses Tycho, I also wanted to do testing the Eclipse/Tycho-way by using the tycho-surefire-plugin. As far as I understood, testing the Eclipse-way means, that…
Stefan Wegener
  • 726
  • 1
  • 10
  • 25
2
votes
3 answers

Travis Maven build exits with OutOfMemoryException

I have a maven build running on Travis (dockerized) which builds just fine on my command line. Since a couple of days I get java.lang.OutOfMemoryError: GC overhead limit exceeded during the test cases. This happens always during the AspectJ test…
2
votes
1 answer

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

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…
Gaurav
  • 319
  • 3
  • 20
2
votes
2 answers

Is it possible to specify a different JVM to run Eclipse with tycho-surefire-plugin

We have a project which is built with Tycho 0.15.0. When running the tests (i.e. UI tests), maven executes cmd.exe /X /C ""C:\Program Files (x86)\Java\jre7\bin\java.exe" -Dosgi.noShutdown=false -Dosgi.os=win32 [...]" This works so far. But now, we…
1
vote
0 answers

java.lang.StackOverflowError when using tycho-surefire-plugin

I am trying to use tycho-surefire-plugin to run my JUnit Plugin Tests for an Eclipse RCP project. This is the error I am getting when the tests run (mvn clean verify) Here is how I configured tycho sure fire in pom.xml
Frederic
  • 2,015
  • 4
  • 20
  • 37
1
vote
2 answers

Inconsistent behaviour between maven-surefire and tycho-surefire, with jacoco not generating reports

I'm working on creating a pom for a project and adding test cases to it. The project is an eclipse plugin. Compiling the project with tycho works just fine, the only problem is during testing: If I run both maven-surefire-plugin tests and…
Barnack
  • 921
  • 1
  • 8
  • 20
1
vote
2 answers

Excluding a module from tycho-surefire-plugin

In my tycho test project, I have an optional transitive dependency that I need to exclude for the test execution to work. That transitive dependency is part of the same reactor build. What I have tried:
kutschkem
  • 7,826
  • 3
  • 21
  • 56
1
vote
2 answers

Java -XstartOnFirstThread command line options unrecognized in Linux but working in OSX

I'm using -XstartOnFirstThread argument to solve SWT launch problem in OS X in a Unit test: org.eclipse.tycho tycho-surefire-plugin
josephino
  • 360
  • 4
  • 21
1
vote
1 answer

How to run only tests on a Tycho build RCP Application

Is it possible to run only the junit Plugin tests with tycho surefire without rebuilding the application. A little more information We have 2 jenkins jobs. builds the application (works fine). should only run the tests on the already build…
1
vote
1 answer

Add Fragment to tycho-surefire-plugin

I want to start a fragment with the tycho-surefire-plugin. Simple, right? org.eclipse.tycho tycho-surefire-plugin ${tycho-version}
Stefan S.
  • 3,950
  • 5
  • 25
  • 77
1
vote
1 answer

auto start generated product bundles

I have an equinox server application which I build, using PDE product configuration. Since it is a server application, I would like to start ALL bundles right away. The launch configuration provides the option "Default Auto-Start:". I did not find…
flavio.donze
  • 7,432
  • 9
  • 58
  • 91
1
vote
2 answers

JVM instance per test for Tycho - surefire

So long story short, we have some legacy code that causes problems due to static initialization of constants. Some of our tests depend on that and we would like to isolate them into separate JVM instances. I know that this is fairly easy to do in…
Zahari
  • 391
  • 4
  • 14
1
vote
0 answers

Tycho surefire JUnit tests fail only on 64 bit ubuntu

I build my xtext eclipse plugin project with maven and jenkins and the junit tests with tycho surefire. Jenkins runs on a 64 bit ubuntu and tests are failing with: java.lang.IllegalStateException: Unresolved proxy http://url/from/mydsl#//element.…
Christian
  • 83
  • 5
1
vote
1 answer

Run Cobertura on xtext-project together with Maven and Tycho-surefire

I have a multi-modul project with one test modul that tests three others. I have already set up the cobertura instrumentation, merging and reporting with maven antrun-plugin described here: cobertura on maven multi module project but I don't…