Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-user Digest, Vol 1, Issue 2

Hi, 

Update : I can partially run tests on OSX by adding 

  <argLine>-XstartOnFirstThread</argLine>

to the configuration of maven-osgi-test-plugin. 

Some tests run and pass, but the process get locked at the third test, I have to Control-C to break the process. 
All my tests are using SWT and a Display, this is probably the source of my issue, but as stated in my previous mail, the same test suite works in Eclipse and in cbi.
Any idea on the changes I can apply on the pom or on my tests to make it work ?   (see previous mail for test example - my tests are all the Nebula Gallery tests)

Thanks,
-- 
Nicolas



Date: Mon, 27 Sep 2010 10:46:42 +0200
From: Nicolas Richeton <nicolas.richeton@xxxxxxxxx>
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Run UI tests with Tycho
Message-ID: <9D60FEDA-87DB-4470-BD5C-8D64D8CEFBBD@xxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Hi,

I'm trying to build & test nebula widgets using tycho. Building works really great, but I have issues running tests :  I get an SWT error because tests are not run from the main thread.

=>
**WARNING: Display must be created on main thread due to Cocoa restrictions.
<=

The same tests work in Eclipse and with CBI. An example can be seen there [1].

I'm using Tycho 0.9.0.  (latest stable at the moment, I think)

I tried to set
         <useUIHarness>true</useUIHarness>
and
         <useUIThread>true</useUIThread>
on maven-osgi-test-plugin with all possibilities (true/false). I see changes on the command line for test runner, and different output, but I always get the same error.

Is running SWT tests supported by any tycho version (stable/dev) on Mac ? How can I make it work ? Would it work on other platform  ?  

Thanks for you help.

[1] http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.nebula/org.eclipse.nebula.widgets.gallery.tests/src/org/eclipse/nebula/widgets/gallery/tests/Bug280635Test.java?view=markup&revision=1.2&root=Technology_Project

--
Nicolas





Back to the top