@crvouga/atlas 0.1.0 → 0.2.0
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/CHANGELOG.md +6 -0
- package/README.md +10 -7
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -105,14 +105,17 @@ bun run example:clients # clients/: one chart across a phone, a desktop and
|
|
|
105
105
|
bun run example:clients:bun # the same, with the desktop in Bun's WebKit and the phone in Playwright's Chromium
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
To
|
|
109
|
-
|
|
108
|
+
To run every chart of the example and browse the results, run these in separate terminals; the
|
|
109
|
+
visualizer updates when a run finishes.
|
|
110
110
|
|
|
111
111
|
```sh
|
|
112
|
-
bun run example:run
|
|
113
|
-
bun run
|
|
112
|
+
bun run atlas:run # example:clients, then example:run: every chart of the example, in showcase mode
|
|
113
|
+
bun run atlas:viz # the example's specs and those runs, in the visualizer
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
+
Each config writes its own run and the visualizer shows one run at a time: the latest is the
|
|
117
|
+
single-browser run, and the run across clients is the one before it in the run picker.
|
|
118
|
+
|
|
116
119
|
A showcase run ends with:
|
|
117
120
|
|
|
118
121
|
```
|
|
@@ -448,9 +451,9 @@ export default defineConfig<Clients>({
|
|
|
448
451
|
- If one client cannot open (no simulator booted), the others are closed and the attempt fails
|
|
449
452
|
naming that client.
|
|
450
453
|
|
|
451
|
-
[`examples/todo/clients`](examples/todo/clients) runs a chart
|
|
452
|
-
sync server; pick each device's driver with `ATLAS_PHONE` and
|
|
453
|
-
(`playwright`, `bun` or `webdriver`).
|
|
454
|
+
[`examples/todo/clients`](examples/todo/clients) runs a chart (`specs/clients/shared-list.scxml`)
|
|
455
|
+
across a phone, a desktop and the sync server; pick each device's driver with `ATLAS_PHONE` and
|
|
456
|
+
`ATLAS_DESKTOP` (`playwright`, `bun` or `webdriver`).
|
|
454
457
|
|
|
455
458
|
## Writing a driver
|
|
456
459
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/atlas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Atlas: executable statecharts. Spec a product's flows as statecharts, run them against the real app with any driver, and browse what happened.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -118,7 +118,8 @@
|
|
|
118
118
|
"example:run": "bun --cwd examples/todo ../../packages/core/bin/atlas.mjs run --mode showcase",
|
|
119
119
|
"example:clients": "bun --cwd examples/todo ../../packages/core/bin/atlas.mjs run --config clients/atlas.config.ts --mode showcase",
|
|
120
120
|
"example:clients:bun": "ATLAS_DESKTOP=bun bun --cwd examples/todo ../../packages/core/bin/atlas.mjs run --config clients/atlas.config.ts --mode showcase",
|
|
121
|
-
"
|
|
121
|
+
"atlas:run": "status=0; bun run example:clients || status=$?; bun run example:run || status=$?; exit $status",
|
|
122
|
+
"atlas:viz": "bun packages/visualizer/bin/atlas-visualizer.mjs dev --specs examples/todo/specs --runs examples/todo/atlas-runs",
|
|
122
123
|
"release:plan": "bun scripts/release/plan.ts",
|
|
123
124
|
"release:publish": "bun scripts/release/publish.ts",
|
|
124
125
|
"release:smoke": "bun scripts/release/consumer-smoke.ts",
|