Skip to content

Conversation

Copy link

Copilot AI commented Oct 25, 2025

Implements vendor-neutral test result integration via the Open Test Reporting format, allowing any test framework that outputs OTA4J to display results in the Eclipse Unit Test view without framework-specific adapters.

New Bundle: org.eclipse.unittest.ui.ota4j

Core Components:

  • OpenTestReportingReader - StAX-based streaming parser for OTA4J events (core-0.2.0, events-0.2.0)
  • OpenTestReportingClient - ITestRunnerClient implementation for async event monitoring
  • OpenTestReportingUtils - Convenience methods for file-based reading

Event Mapping:

started (no parent)   → newTestSuite() + notifyTestStarted()
started (with parent) → newTestCase() + notifyTestStarted()
finished SUCCESSFUL   → notifyTestEnded(ignored=false)
finished FAILED       → notifyTestFailed(FAILURE) + notifyTestEnded()
finished ERRORED      → notifyTestFailed(ERROR) + notifyTestEnded()
finished SKIPPED      → notifyTestEnded(ignored=true)

Usage

// Read from file
OpenTestReportingUtils.readEventsFromFile(session, "test-results.xml");

// Stream events
Reader eventStream = ...;
OpenTestReportingClient client = new OpenTestReportingClient(session, eventStream);
client.startMonitoring();

Bundle Contents

  • OTA4J XSD schemas (core-0.2.0.xsd, events-0.2.0.xsd)
  • Sample event XML file
  • Complete OSGi bundle configuration
  • Module registered in debug/pom.xml

Streaming architecture ensures minimal memory footprint for large test suites. UTF-8 charset handling throughout.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/ota4j-team/open-test-reporting/contents/schema/src/test/resources
    • Triggering command: curl -s REDACTED (http block)
  • repo.eclipse.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/eclipse.platform/eclipse.platform org.codehaus.plexus.classworlds.launcher.Launcher clean verify -Pbuild-individual-bundles (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Implements the new feature described here eclipse-platform#2212


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Implement new feature from issue 2212 Add OTA4J (Open Test Reporting) integration for Eclipse Unit Test view Oct 25, 2025
Copilot finished work on behalf of laeubi October 25, 2025 06:36
Copilot AI requested a review from laeubi October 25, 2025 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants