Skip to content

测试

Tauri 提供了对单元测试和集成测试的支持,利用模拟运行时。在模拟运行时下,本地 webview 库不会被执行。[在此查看更多关于模拟运行时的信息]。

🌐 Tauri offers support for both unit and integration testing utilizing a mock runtime. Under the mock runtime, native webview libraries are not executed. See more about the mock runtime here.

Tauri 还提供使用 WebDriver 协议进行端到端测试的支持。[WebdriverIO Tauri 测试] 支持 Windows、Linux 和 macOS;WebDriver 协议也可以直接在 Windows 和 Linux 上驱动,因为 macOS 没有提供桌面 WebDriver 客户端。[在这里查看更多关于 WebDriver 支持的信息]。

🌐 Tauri also provides support for end-to-end testing utilizing the WebDriver protocol. WebdriverIO Tauri testing supports Windows, Linux, and macOS; the WebDriver protocol can also be driven directly on Windows and Linux, as macOS provides no desktop WebDriver client. See more about WebDriver support here.

我们提供 tauri-action 来帮助运行 GitHub actions,但任何类型的 CI/CD 运行器都可以与 Tauri 一起使用,只要每个平台都安装了用于编译所需的库。

🌐 We offer tauri-action to help run GitHub actions, but any sort of CI/CD runner can be used with Tauri as long as each platform has the required libraries installed to compile against.


Tauri 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站