Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Running the SWT unit tests?

Hello Lars, 

There is a bit of info here:
https://wiki.eclipse.org/SWT/Devel/Gtk/JUnitTests

But not much. But I can add things that are not clear (let me know ...).

For me on Fedora 24 with Gtk2.24, Gtk3.14 - Gtk3.18 all jUnit test cases for AllNonBrowser tests pass. 

(There seems to be a quirk on Gtk3.20 due to patch: https://bugs.eclipse.org/bugs/show_bug.cgi?id=445900#c13 )
Bug 445900 - [GTK] Shell#computeTrim(..) wrong for first invisible shell)

I think the only thing needed is that the swt test project has SWT as dependency and that your swt project is working well. 

If interested in running these tests from the command line, I've also been working on automating some of those jUnit tests across multiple gtk versions. 

If stuck somewhere, let me know and I'll be happy to help out.

Leo



On Tue, Jan 12, 2016 at 11:05 AM, Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
Thanks Dani and Sravan, but even without touching the mouse or
keyboard the SWT tests are stopping at
test_timerExecILjava_lang_Runnable if I use GTK2.

Good news for me is, that the latest I-Build works again on Ubuntu
15.10 (Bug 484005) and this error does not happen on GTK3. I have two
other failures on GTK3 and I will open bug report for them.

Best regards, Lars

On Mon, Jan 11, 2016 at 1:55 PM, Daniel Megert <daniel_megert@xxxxxxxxxx> wrote:
> Hi Lars
>
> Make sure that you don't mess with the UI while the tests are running. This
> could cause unexpected failures.
>
> Dani
>
>
>
> From:        Lars Vogel <lars.vogel@xxxxxxxxxxx>
> To:        "Eclipse Platform SWT component developers list."
> <platform-swt-dev@xxxxxxxxxxx>
> Date:        11.01.2016 13:47
> Subject:        Re: [platform-swt-dev] Running the SWT unit tests?
> Sent by:        platform-swt-dev-bounces@xxxxxxxxxxx
> ________________________________
>
>
>
> Hi Sravan,
>
> thanks for the answer. So no additional setup should be required to run the
> SWT tests?
>
> In this case I open a bug for the hanging test_timerExecILjava_lang_Runnable
> test. It is not failing, just no finishing (I waited several minutes).
>
> Best regards, Lars
>
> On Mon, Jan 11, 2016 at 1:29 PM, Sravan K Lakkimsetti
> <sravankumarl@xxxxxxxxxx> wrote:
> Hi,
>
> I just ran the junits I did not get any errors on AllNonBrowserTests. I do
> have problem with Test_BrowserSuite but that is related to configuration of
> my system
>
>
> Thanks and Regards,
> Sravan
>
> Sravan Kumar Lakkimsetti
> IBM India Pvt Ltd,
> Embassy Golf Links Business Park, D Block,
> Off Indiranagar-Kormangla Inner Ring Road,
> Bangalore - 560071, India
> Phone: 91-80-41776858
>
> Lars Vogel ---01/11/2016 05:22:02 PM---Friends of SWT, can you point me to
> the documentation how to run the SWT unit tests?
>
> From: Lars Vogel <lars.vogel@xxxxxxxxxxx>
> To: "Eclipse Platform SWT component developers list."
> <platform-swt-dev@xxxxxxxxxxx>
> Date: 01/11/2016 05:22 PM
> Subject: [platform-swt-dev] Running the SWT unit tests?
> Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
> ________________________________
>
>
>
>
> Friends of SWT,
>
> can you point me to the documentation how to run the SWT unit tests?
>
> https://wiki.eclipse.org/SWT/Devel seems not to contain the information.
>
> Background:
> ----------
> I'm tried running "AllTests.java" and "AllBrowserTests" from
> org.eclipse.swt.tests but these tests stop at
> test_timerExecILjava_lang_Runnable, at least with GTK2.
>
> AllWidgetTests seems to run fine.
> -----------
>
> Best regards, Lars
>
>
> --
> Eclipse Platform UI and e4 project co-lead
> CEO vogella GmbH
>
> Haindaalwisch 17a, 22395 Hamburg
> Amtsgericht Hamburg: HRB 127058
> Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
> USt-IdNr.: DE284122352
> Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web:
> http://www.vogella.com
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>
>
> --
> Eclipse Platform UI and e4 project co-lead
> CEO vogella GmbH
>
> Haindaalwisch 17a, 22395 Hamburg
> Amtsgericht Hamburg: HRB 127058
> Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
> USt-IdNr.: DE284122352
> Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web:
> http://www.vogella.com[attachment "graycol.gif" deleted by Daniel
> Megert/Zurich/IBM] _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--
Eclipse Platform UI and e4 project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--
Leo Ufimtsev | Software Engineer Intern @ Red Hat

Back to the top