GithubHelp home page GithubHelp logo

kumassy / tauri-webdriver-test Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 281 KB

A demo to test tauri apps by WebdriverIO on macOS

HTML 4.62% Shell 7.73% Rust 7.30% CSS 21.82% TypeScript 33.72% JavaScript 24.81%
macos tauri tauri-apps webdriverio lima lima-vm

tauri-webdriver-test's Introduction

Tauri Webdriver Test

A demo to run WebDriver Test on macOS with Apple Silicon.

Prerequisite

You need to install and run XQuartz.

Create Lima VM

WebDriver Test only support Windows and Linux, so you need to run Ubuntu on top of your macOS. You can easily create Ubuntu environment using Lima

limactl start --name=tauri-webdriver path/to/tauri-webdriver-test/lima/lima.yaml
limactl shell tauri-webdriver
[lima]$ cd /Users/<macOS user name>/path/to/tauri-webdriver-test/lima
[lima]$ ./bootstrap.sh

Running Test on Lima VM

You can use file sharing features to build tauri project. However, cargo build on shared filesystem is slow and unstable. Please copy tauri project to Lima-local directory.

You can see tauri project as read-only:

ls /Users/<macOS user name>/path/to/tauri-webdriver-test

Copy tauri project to Lima-local writable directory:

cp -r /Users/<macOS user name>/path/to/tauri-webdriver-test $HOME/

Then, you can build tauri project

cd $HOME/tauri-webdriver-test
yarn install
yarn test

Develop on Lima VM

You can use VSCode Remote-SSH features to edit files located at Lima-local diretory.

This command gives ssh settings to connect to Lima VM:

limactl show-ssh tauri-webdriver

Open VSCode and paste the output. Then, you can use Remote-SSH feature to edit files inside Lima VM.

tauri-webdriver-test's People

Contributors

kumassy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.