testsurfer 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,26 @@ vibesurfer is a daemon that owns one real WebKit engine and speaks a line protoc
|
|
|
32
32
|
|
|
33
33
|
The daemon is fetched automatically. If `vs` is not on your PATH, testsurfer runs `npx vibesurfer@0.2.14` (pinned, checksum-verified) to download and start it. Set `TESTSURFER_VS` to point at a specific binary. testsurfer reads the daemon's protocol version and feature flags at launch and uses what it offers, so a newer `vs` on your PATH works too.
|
|
34
34
|
|
|
35
|
+
## CI
|
|
36
|
+
|
|
37
|
+
testsurfer runs on macOS and Linux GitHub runners. On Linux it needs WebKitGTK 6 and an X display; the action in this repo installs both and starts the pinned vibesurfer daemon:
|
|
38
|
+
|
|
39
|
+
```yaml
|
|
40
|
+
jobs:
|
|
41
|
+
test:
|
|
42
|
+
runs-on: ubuntu-24.04 # or macos-15
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v4
|
|
45
|
+
- uses: actions/setup-node@v4
|
|
46
|
+
with:
|
|
47
|
+
node-version: 24
|
|
48
|
+
- run: npm ci
|
|
49
|
+
- uses: frane/testsurfer@v0
|
|
50
|
+
- run: node --test tests/
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
`vibesurfer-version` overrides the pinned daemon. This repo's own CI runs the same action on both runners. Windows (WebView2) is supported by vibesurfer but not yet tested here.
|
|
54
|
+
|
|
35
55
|
## API
|
|
36
56
|
|
|
37
57
|
Locators resolve lazily at action time, against a fresh view:
|
|
@@ -141,7 +161,7 @@ Version 0.1 pins vibesurfer 0.2.14 and speaks its frozen wire protocol (v1). Old
|
|
|
141
161
|
|
|
142
162
|
## Benchmark
|
|
143
163
|
|
|
144
|
-
[`bench/`](bench) runs identical flows through testsurfer and Playwright (WebKit and Chromium) against the same app and reports the numbers, favorable and not. On
|
|
164
|
+
[`bench/`](bench) runs identical flows through testsurfer and Playwright (WebKit and Chromium) against the same app and reports the numbers, favorable and not. On GitHub runners with vibesurfer 0.2.14, testsurfer launches in 3-11ms against Playwright's 0.4-1.3s. The four-flow suite takes 702-968ms on macOS against 561-627ms for Playwright-WebKit and 416-483ms for Playwright-Chromium, and 842-873ms on Linux against 549-664ms and 368-408ms. A working install is ~6MB against ~300MB+ per Playwright browser. The full tables, methodology and history are in the bench README; the `bench` workflow reproduces them.
|
|
145
165
|
|
|
146
166
|
## Example
|
|
147
167
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testsurfer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "End-to-end testing for the web, driven by vibesurfer. Playwright-style locators and auto-retrying assertions over a real WebKit engine with trusted native input.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|