This repo includes an extremely basic tauri app and similarly simple tests using webdriverio.
pnpm
and the build environment for tauri v2 apps. These are documented in https://v2.tauri.app/start/prerequisites/.
- Clone this repo locally.
- Run
pnpm install
in the root of the cloned repo. This command installs the project's package dependencies. - Change to the
e2e
folder e.g.cd e2e
and runpnpm install
in that directory which installs the additional dependencies to run the tests.
Obtain an API key from CrabNebula which enables the underlying driver for MacOS testing. New customers are welcome https://crabnebula.dev/contact/.
On MacOS export the key:
export CN_API_KEY=<your instance of the API key>
e.g.
export CN_API_KEY=ABCDE12345...Z
Note: the keys generally have a finite life and need to be replaced when they expire.
Simply run pnpm test
in the e2e
folder. Optionally prefix this to obtain the stack trace if failures occur:
RUST_BACKTRACE=1 pnpm test