wxa-runner README

The project's README from github.com/open-wxa/wxa-runner. As one markdown file: README.md.

wxa-runner

2026 年 11 月,本项目应腾讯公司要求下线,代码、文档和 npm 包均已停止提供。

它曾经是什么

在普通浏览器里,用微信官方基础库运行小程序,用于本地调试和 E2E 自动化测试:

它是给开发者测试自己的小程序用的,仅此而已。

事实证明,在浏览器里调试自己写的代码,也是需要被批准的。

如果你也想给小程序写 E2E 测试

  1. 找一台 Windows 或 macOS 机器
  2. 安装微信开发者工具,并保持登录
  3. 打开自动化端口,祈祷它别弹窗
  4. 祝你好运

最后

感谢所有用过它、提过 Issue 和 PR 的朋友。一千多个 star 说明,这件事确实有人需要。

也感谢腾讯专程来打招呼,让一个调试工具有了它本不配拥有的关注度。

祝小程序生态“越来越好”,祝开发者工具“越来越稳定”。

wxa-runner (open-wxa/wxa-runner)

miniprogram
Searching Database…

What is this?It runs WeChat mini-programs in a regular browser using the official WeChat base library, for local debugging and Playwright E2E tests.
Is it an app or a library, or something else entirely?It is a developer tool. It runs your compiled mini-program output directly with the official base library instead of re-implementing it as H5, so rendering, components and lifecycle behave like on a real device.
How do I get it running?Follow the Quick Start in the docs to install the package, the WeChat base library and the compiler; the exact commands are not in the README excerpt. Then open a page in the browser, using the ?path= parameter to jump straight to it.
What do I need before I start?A mini-program project to run (compiled uni-app or Taro output), and Playwright if you want E2E tests. The README does not list version requirements.
Does it replace WeChat DevTools?No. Preview, upload and real-device debugging still need the official WeChat Developer Tools.
Can I run the tests in CI without installing WeChat DevTools?Yes. In CI it runs headless on Linux, and you do not need WeChat DevTools installed there.
Can I try it without installing anything?Yes. The online preview runs a uni-app mini-program in the browser with mock data; votes, comments and posts work and reset on refresh.
Does it hot-reload when I save?Yes. You can set breakpoints, inspect network requests and the DOM in Chrome DevTools, and changes hot-update after you save.
Can I skip login and mock native APIs in tests?Yes. In setup you can preset the login state, mock native APIs and intercept wx.request, so you do not have to change business code.
Can I share a result without sharing the source code?Yes. The viewer runs a mini-program without its source in the browser and can export it as a static site to send to others.
Creator
open-wxa
Size
0 MB
Stars
1.3K
Updated
CommitNov 16
Age
1mo
Commits · 90 Days