Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Platform specific SWT JUnit Tests

I created bug 518379 ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=518379
), to provide the necessary infrastructure for platform specific Junit
tests.

-----Ursprüngliche Nachricht-----
Von: platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] Im Auftrag von Eric Williams
Gesendet: Dienstag, 6. Juni 2017 17:55
An: platform-swt-dev@xxxxxxxxxxx
Betreff: Re: [platform-swt-dev] Platform specific SWT JUnit Tests

On 06/06/2017 10:58 AM, Leo Ufimtsev wrote:
> Hello Conrad,
> 
> I've had similar situations in the past.
> 
> At the moment we don't have platform specific jUnit tests. Instead the 
> existing jUnits are ran against win/cocoa/gtk versions of gtk.
> 
> We've been brainstorming some ideas on the subject. For example one 
> solution might be to add separate projects:
> org.eclipse.swt.tests.gtk
> org.eclipse.swt.tests.win32
> org.eclipse.swt.tests.cocoa
> (sort of like we have separate projects for binaries)
> 
> This would be pretty straight forward and easy to understand at first 
> glance (no need to mess with .classpath etc..).
> 
> It's easy to add them if we don't need Hudson to test them. E.g only 
> run them on demand by the developer.
> However, if Hudson is involved, then things get a bit complicated as 
> we'd need to fiddle around with Hudson configurations.
> 
> We could start off with just having separate projects as above and put 
> tests in there, and not have them tested by Hudson for now. Then later 
> if we have maybe more than 50-100 tests, look into actually 
> incorporating them into Hudson.
> 
> Thoughts?

+1, I have a collection of test snippets and such for GTK specific bugs. 
I think it would be a good idea to add them to the repository for others to
use as well.

Eric


> 
> If we agree on the idea, I could look into adding such projects.
> 
> 
> On Mon, Jun 5, 2017 at 5:47 AM, Conrad Groth <info@xxxxxxxxxxxxxxx 
> <mailto:info@xxxxxxxxxxxxxxx>> wrote:
> 
>     Is there (already) a place, where I can put platform specific SWT
>     JUnit Tests? Background: I wrote a test for the FileTransfer class,
>     which is platform independent; but to provide some test
>     TransferData, I need to instantiate platform specific classes, e.g.
>     org.eclipse.swt.internal.ole.win32.FORMATETC for windows.
>     If there is no place for it already, what would be a good place?
>     Maybe a separate test fragment?
> 
>     Best regards
>     Conrad
>     _______________________________________________
>     platform-swt-dev mailing list
>     platform-swt-dev@xxxxxxxxxxx <mailto: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
>     <https://dev.eclipse.org/mailman/listinfo/platform-swt-dev>
> 
> 
> 
> 
> --
> 
> Leo Ufimtsev
> 
> Software Engineer
> 
> Red Hat
> <https://www.redhat.com>
> 
> 
> 90 Eglinton Ave E #502,
> 
> Toronto, ON M4P 2Y3
> 
> Leonidas@xxxxxxxxxx <mailto:Leonidas@xxxxxxxxxx>
> 
> CHAT:
> 
>    - IRC: http://webchat.freenode.net/?channels=#swt
> 
>    - MatterMost: 
> https://mattermost.eclipse.org/eclipse/channels/platform-swt
> 
> <https://red.ht/sig>
> 
> 
> 
> _______________________________________________
> 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



Back to the top