Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Problem running junit plugin tests with CDT parent pom: No tests found


I'm currently trying to build some of my plugins with the CDT parent pom.
excerpt from the build log

[INFO] --- tycho-surefire-plugin:1.6.0:test (default-test) @ ---
[INFO] Expected eclipse log file:
[INFO] Command line:
-Dosgi.noShutdown=false, -Dosgi.os=linux,,
-Dosgi.arch=x86_64, -javaagent:/home/15knots/.cache.
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-surefire-plugin:1.6.0:test (default-test) on
project No tests found. -> [Help

In the metadate/.log I see the following

BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments:  -application
org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties
-product org.eclipse.platform.ide -pluginCustomization
Command-line arguments:  -data
-application org.eclipse.tycho.surefire.osgibooter.headlesstest
-product org.eclipse.platform.ide -pluginCustomization

!ENTRY 4 0 2020-02-10 20:36:27.118
!MESSAGE FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: [225]
  Unresolved requirement: Require-Capability: eclipse.platform;

Why does eclipse require the win32 stuff? Could that be the problem?

Originally, all tests ran fine with the /maven/-surefire-plugin. Now
CDt runs them with the /tycho/-maven-plugin. Do I need to tweak my

When running maven with debug output, I can the that the test classes
are at the location wher surefire expects them:

[INFO] --- tycho-surefire-plugin:1.6.0:test (default-test) @ ---
[DEBUG] Configuring mojo
org.eclipse.tycho:tycho-surefire-plugin:1.6.0:test from plugin realm
parent: sun.misc.Launcher$AppClassLoader@70dea4e]
[DEBUG] Configuring mojo
'org.eclipse.tycho:tycho-surefire-plugin:1.6.0:test' with basic
configurator -->
[DEBUG]   (f) appArgLine = -pluginCustomization
[DEBUG]   (f) argLine =
-Xms256m -Xmx512m -ea
[DEBUG]   (f) deleteOsgiDataDirectory = true
[DEBUG]   (s) type = p2-installable-unit
[DEBUG]   (s) artifactId =
[DEBUG]   (f) dependencies = [Dependency {groupId=null,, version=null,
[DEBUG]   (f) enableAssertions = false
[DEBUG]   (f) failIfNoTests = true
[DEBUG]   (f) includes = [**/AutomatedIntegrationSuite.*]
[DEBUG]   (f) osgiDataDirectory =
[DEBUG]   (f) perCoreThreadCount = true
[DEBUG]   (f) pluginArtifacts = ...
[DEBUG]   (f) product = org.eclipse.platform.ide
[DEBUG]   (f) profileName = DefaultProfile
[DEBUG]   (f) project = MavenProject: @
[DEBUG]   (f) redirectTestOutputToFile = false
[DEBUG]   (f) reportsDirectory =
[DEBUG]   (f) rerunFailingTestsCount = 0
[DEBUG]   (f) runOrder = filesystem
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@2e46ffd5
[DEBUG]   (f) showEclipseLog = false
[DEBUG]   (f) skipAfterFailureCount = 0
[DEBUG]   (f) surefireProperties =
[DEBUG]   (f) testClassesDirectory =

Any hints?


Back to the top