Hi Danail,

On Mon, Feb 27, 2012 at 3:13 AM, Branekov, Danail
<[email protected]>wrote:

> The search console JUnit tests are already part of the test execution but
> there are quite a lot of weird failures:****
>
> 1. There are quite a lot of IllegalStateExceptions thrown when calling
> PlatformUI.getWorkbench, for example****
>
> java.lang.IllegalStateException: Workbench has not been created yet.****
>
> at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)****
>
> at
> org.eclipse.platform.discovery.integration.test.unit.internal.SaveInFavoritesViewCustomizationTest.setupViewAccessor(SaveInFavoritesViewCustomizationTest.java:102)
> ****
>
> How can the workbench not be created? Tests are executed as PDE tests,
> right?
>

Yes, they're run as PDE tests.  It looks like the code that is calling
Test.setupViewAccessor(*)
is running before the workbench has completely initialized.  Is it being
started deliberately through OSGi?  Most bundles with the
"Bundle-ActivationPolicy:
lazy" won't run into this problem.


> ****
>
>  2. One of the SWTBot tests fails with an error saying that the tests must
> be executed out of the UI thread
> (SlidingCompositeTest.testProgressMonitorCanBeCancelledOutOfUiThread()).
> The failure is caused by Display.getCurrent() not returning null. Indeed,
> SWTBot tests _*must*_ be run out of the UI thread. Or do I need to
> somehow explicitly specify somewhere that a test suite should be executed
> as a SWTBot test?
>
> **
>
What is your SWTBot test launching as to run outside the UI thread?  What
application and/or product does it use?  If the launcher isn't clear, you
can always look at the properties of a successful launch in the Debug view,
it has the command line used to launch them.


> **
>
> ** **
>
> Is the eclipse workspace log file produced while a test suite execution
> preserved somewhere? I suspect that it can provide valuable details for
> troubleshooting these failures
>

The console log for this build are still at
http://build.eclipse.org/eclipse/e4/logs/current.log

The test logs for the build are at
http://build.eclipse.org/eclipse/e4/build/e4/downloads/drops/4.0.0/I20120223-2200/eclipse-testing/results/linux.gtk.x86_64/

Later,
PW


-- 
Paul Webster
Hi floor.  Make me a sammich! - GIR
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to