[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [swtbot-dev] Running org.eclipse.swtbot.swt.finder.test
|
Just not on cocoa! Use carbon for the swt tests instead. Cocoa supports
UI thread only on the main thread[1] [2]. The only reason I'm not
upgrading to the shiny new unibody MBP :(
There's an open swtbot bug around fixing this[3] and comments 1-4 are
the interesting bits.
The short story is that the unit tests should be able to control the
main event loop in case tests go berserk, hang up or just finish
execution and need to 'shutdown' the UI in a proper manner. In order to
be able to do this, tests run on the main thread, and start the UI on a
background thread.
The unit test 'setup' in the swt.finder.tests is an ugly hack to make
the UI tests run in a non-main thread so there needs to be a way to
reverse this in for cocoa (and ideally all platforms).
--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot
[1] - https://bugs.eclipse.org/263539
[2] - https://bugs.eclipse.org/291201
[3] - https://bugs.eclipse.org/308425
On 5/3/10 11:13 PM, Chris Aniszczyk wrote:
Has anyone successfully run org.eclipse.swtbot.swt.finder.test on Mac?
Am I missing something obvious here?