feat(testrun): refuse a run against a spec that registers no properties

A spec with no properties drove the app and reported no violations,
which is indistinguishable from a spec that judged something and found
nothing. Execute now aborts after loading the spec unless the run asks
for the opt-out by name.
This commit is contained in:
pj committed 2026-08-17 23:27:21 +05:30
1 parent 11c1569932
commit 7bafed8af4
4 files changed
+133

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { extract, taps } from "@sanderling/spec";
export const counter = extract((s) => {
const el = s.ax.find({ id: "counter" });
return el ? parseInt(el.text, 10) || 0 : 0;
}).named("counter");
export const properties = {};
export const actionsRoot = taps;