Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rzmk/tauri-windows-e2e-demo
๐งช Demonstration of end-to-end testing with a Tauri app on Windows.
https://github.com/rzmk/tauri-windows-e2e-demo
demo e2e e2e-tests end-to-end-testing rust tauri tauri-app testing windows
Last synced: about 1 month ago
JSON representation
๐งช Demonstration of end-to-end testing with a Tauri app on Windows.
- Host: GitHub
- URL: https://github.com/rzmk/tauri-windows-e2e-demo
- Owner: rzmk
- Created: 2024-07-19T19:44:58.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-19T19:51:53.000Z (6 months ago)
- Last Synced: 2024-12-15T02:32:17.547Z (about 1 month ago)
- Topics: demo, e2e, e2e-tests, end-to-end-testing, rust, tauri, tauri-app, testing, windows
- Language: Rust
- Homepage:
- Size: 1.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tauri-windows-e2e-demo
This is an example of end-to-end testing for a Tauri v2 Beta application on Windows. The test should successfully click the button in the app.
![E2E demo](https://github.com/user-attachments/assets/46e0b4ce-6077-41f4-bb2a-d264f8203b65)
## Prerequisites
0. Make sure you have [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) and [Bun](https://bun.sh) installed.
1. Install [tauri-driver](https://crates.io/crates/tauri-driver) and make it accessible from your PATH (run `cargo install tauri-driver`).
2. Install [msedgedriver.exe](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/?form=MA13LH#downloads) and make it accessible from your PATH.
3. Build the app first (`bun i && bun tauri build`) before running the end-to-end test (`cd e2e && cargo run`).The [fantoccini](https://crates.io/crates/fantoccini) and [enigo](https://crates.io/crates/enigo) crates may be useful for further implementation.