Skip to content

Debug Tycho/Surefire test failures in com.google.gwt.eclipse.core.test #329

@GoogleCodeExporter

Description

@GoogleCodeExporter
There are two tests that were failing in GWTRuntimeTest both when run under 
Tycho and from the PDE. Those are both disabled.

There are 15 other failures only when run under Tycho/Surefire, all occurring 
when JavaUI.openInEditor() unexpectedly returns a null IEditorPart. After a 
couple of hours of printf debugging I found the following:
* Good ICompilationUnit objects are retrieved, backed by good underlying 
resources.
* The Platform reports it is initialized, and adding delays and waiting for 
jobs to go idle do not fix the problem.
* EditorUtility.getEditorInput(iCompilationUnit) succeeds
* EditorUtility.getEditorDescription returns a type 
org.eclipse.jdt.ui.CompilationUnitEditor

I tried both IDE.openEditor() and JavaUI.openInEditor() but never figured out 
the missing configuration required to get the tests to succeed, so I updated 
the pom.xml file to exclude the following 3 files:
JsniFormattingUtilTest.java
JsniMethodBodyCompletionProposalComputerTest.java
JavaComplilationParticipantTest.java

Original issue reported on code.google.com by tpar...@google.com on 11 Feb 2015 at 7:53

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions