-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add base for GUI tests #2476
base: master
Are you sure you want to change the base?
Add base for GUI tests #2476
Conversation
a3f8cd0
to
1a2991f
Compare
ef31501
to
4b48db3
Compare
Finally fixed windows build. :') |
This comment was marked as resolved.
This comment was marked as resolved.
4b48db3
to
3ef8841
Compare
Great idea, thanks! Updated. |
3ef8841
to
3edbe33
Compare
CONTRIBUTING.md
Outdated
cargo test --test gui -- --disable-headless-test | ||
``` | ||
|
||
You can find the `browser-ui-test` package documentation on [its repository](https://github.com/GuillaumeGomez/browser-UI-test/blob/master/goml-script.md). |
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.
This is missing a lot of information on how those are written. Something like this?
The GUI tests are in the directory
tests/gui
in text files with the.goml
extension. These tests are run using a node.js program calledbrowser-ui-test
. You can find documentation for this language on its repository.
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.
Indeed, thanks! Hard to know what is missing when you're too involved in something. ^^'
3edbe33
to
7ba47be
Compare
- name: Build and run tests (+ GUI) | ||
if: matrix.os != 'windows-latest' | ||
run: cargo test --locked --target ${{ matrix.target }} --test gui | ||
- name: Build and run tests | ||
if: matrix.os == 'windows-latest' | ||
run: cargo test --locked --target ${{ matrix.target }} |
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.
This seems to disable the default tests on non-windows runners. cargo test --locked --target ${{ matrix.target }} --test gui
only runs the GUI tests.
As discussed with @ehuss, this PR adds the basics for adding more GUI tests. Just add more
.goml
files in thetests/gui
folder.This is the same GUI test framework used in rustdoc and docs.rs.
If you need any explanation on how it works, or if you have any question, please don't hesitate to ask.