-
-
Notifications
You must be signed in to change notification settings - Fork 80
Blog post for gtk-test release #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@GuillaumeGomez Thanks, now we have way to test gtk in .travis too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some details :)
|
||
Hi everyone! | ||
|
||
Today is not about a new [`gtk-rs`] release but about a new crate being released. Let me introduced to you: [`gtk-test`]! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
introduced -> introduce
|
||
Today is not about a new [`gtk-rs`] release but about a new crate being released. Let me introduced to you: [`gtk-test`]! | ||
|
||
So what's the purpose of this new crate? Simply to test UI. Currently, testing UIs is difficult, but with [`gtk-test`], you can check basically everything UI-related way more simply. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply to test UI -> UIs
way more simply -> simple
check -> test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't make sense with "simple". :-/ Or did I misunderstood what you meant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply to test UIs. Currently, testing UIs is difficult, but with [gtk-test
] you can test basically everything UI-related way more simple.
But better ask a native English speaker if unsure :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see! Thanks!
|
||
So what's the purpose of this new crate? Simply to test UI. Currently, testing UIs is difficult, but with [`gtk-test`], you can check basically everything UI-related way more simply. | ||
|
||
Now you might wonder: how does it work? We send UI events to the window. So if your window isn't on top of all other windows, events won't work (not on your window at least). This is an issue on OSX for example (there is a workaround luckily). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That OSX issue seems like something for a footnote, not in the middle of the text :) And with a link to the relevant bug report in Bugzilla and PR
Also maybe mention that windows can be brought to the front by GTK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the issue is that you can't bring the window to the front on OSX. But I'll remove the part about osx issue.
} | ||
``` | ||
|
||
Tadam! The newly created `observer` will look and ensure that the given signal has indeed been called (if not, it'll obviously get stuck at `observer.wait()`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this have a (high) timeout, like 20-30s or so, or an optional timeout when it fails? That would seem useful to prevent CI from hanging forever and let the test cleanly fail and proceed to the next test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it doesn't. However, if you're using cargo test
, the timeout is 60 seconds.
cc @EPashkin @sdroege @antoyo