fusiontest 0.2.23__tar.gz → 0.2.24__tar.gz
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.
- {fusiontest-0.2.23 → fusiontest-0.2.24}/PKG-INFO +1 -1
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/__init__.py +10 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/suites/shop-bugs.yaml +6 -4
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/PKG-INFO +1 -1
- {fusiontest-0.2.23 → fusiontest-0.2.24}/pyproject.toml +1 -1
- {fusiontest-0.2.23 → fusiontest-0.2.24}/README.md +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/sites/shop/bugs.js +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/sites/shop/help.html +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/sites/shop/index.html +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/suites/shop.yaml +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/suites/todomvc.yaml +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/cli.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/action_model.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/app_errors.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/goal_verifier.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/netguard.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/promise_checker.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/replay.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/runner.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/screen_parser.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/secrets.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/shared_traces.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/tokens.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/fusiontest_dashboard.yaml +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/github.yaml +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/hacker_news.yaml +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/httpbin.yaml +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/todomvc.yaml +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/wikipedia.yaml +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/desktop/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/desktop/macos_adapter.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/desktop/playwright_adapter.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/desktop/windows_adapter.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/discovery/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/discovery/goal_generator.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/guardrails/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/guardrails/engine.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/mobile/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/mobile/android_adapter.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/mobile/ios_adapter.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/reporting/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/reporting/reporter.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/training/__init__.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/training/data_collector.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/training/dataset_builder.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/training/trainer.py +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/SOURCES.txt +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/dependency_links.txt +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/entry_points.txt +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/not-zip-safe +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/requires.txt +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/top_level.txt +0 -0
- {fusiontest-0.2.23 → fusiontest-0.2.24}/setup.cfg +0 -0
|
@@ -154,6 +154,8 @@ def _load_bug_suite(data: dict, source: str) -> BugSuite:
|
|
|
154
154
|
match = [str(k).lower() for k in (raw or {}).get("match") or []]
|
|
155
155
|
if kind not in BUG_KINDS or not match:
|
|
156
156
|
raise bad(f"bug {bug_id!r} needs a kind ({' | '.join(BUG_KINDS)}) and match keywords")
|
|
157
|
+
if _nested_keywords(match):
|
|
158
|
+
raise bad(f"bug {bug_id!r}: a keyword contains another {_nested_keywords(match)}")
|
|
157
159
|
bugs[str(bug_id)] = PlantedBug(id=str(bug_id), kind=kind,
|
|
158
160
|
description=str(raw.get("description", "")), match=match)
|
|
159
161
|
variants = []
|
|
@@ -178,6 +180,8 @@ def _load_bug_suite(data: dict, source: str) -> BugSuite:
|
|
|
178
180
|
match = [str(k).lower() for k in (raw or {}).get("match") or []]
|
|
179
181
|
if not match:
|
|
180
182
|
raise bad(f"decoy {decoy_id!r} needs match keywords")
|
|
183
|
+
if _nested_keywords(match):
|
|
184
|
+
raise bad(f"decoy {decoy_id!r}: a keyword contains another {_nested_keywords(match)}")
|
|
181
185
|
shared = bug_keywords & set(match)
|
|
182
186
|
if shared:
|
|
183
187
|
raise bad(f"decoy {decoy_id!r} shares match keywords with a bug: {sorted(shared)}")
|
|
@@ -187,6 +191,12 @@ def _load_bug_suite(data: dict, source: str) -> BugSuite:
|
|
|
187
191
|
platform=str(data.get("platform", "playwright")), site=str(data["site"]))
|
|
188
192
|
|
|
189
193
|
|
|
194
|
+
def _nested_keywords(match: list[str]) -> list[tuple[str, str]]:
|
|
195
|
+
"""Pairs (inner, outer) where one keyword contains another: a single mention
|
|
196
|
+
of the outer one would count as two hits."""
|
|
197
|
+
return [(a, b) for a in match for b in match if a != b and a in b]
|
|
198
|
+
|
|
199
|
+
|
|
190
200
|
def _shared_keywords(bugs: list[PlantedBug]) -> set[str]:
|
|
191
201
|
seen: set[str] = set()
|
|
192
202
|
shared: set[str] = set()
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
#
|
|
12
12
|
# A report matches the planted bug whose `match` keywords it mentions most
|
|
13
13
|
# (case-insensitive); none mentioned means no match. Keep keywords specific to
|
|
14
|
-
# the defect, and keep the bugs in one variant from sharing keywords.
|
|
14
|
+
# the defect, and keep the bugs in one variant from sharing keywords. No
|
|
15
|
+
# keyword may contain another in the same list ("fee" in "service fee"): one
|
|
16
|
+
# mention would count twice.
|
|
15
17
|
#
|
|
16
18
|
# Decoys are always on, in every variant: shop behaviour that looks like a bug
|
|
17
19
|
# but is correct and explained on screen. A report that mentions a decoy's
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
# as a decoy trip, so we can see which decoys fool the bug finder.
|
|
20
22
|
name: shop-bugs
|
|
21
23
|
kind: bugs
|
|
22
|
-
version:
|
|
24
|
+
version: 3 # v3: match keywords fixed (no keyword inside another); v2: decoys
|
|
23
25
|
description: Bug finding on Acme Shop variants with planted defects (ADR-009)
|
|
24
26
|
platform: playwright
|
|
25
27
|
site: shop
|
|
@@ -45,7 +47,7 @@ bugs:
|
|
|
45
47
|
total-wrong:
|
|
46
48
|
kind: inconsistency
|
|
47
49
|
description: "The cart total leaves out the last line item"
|
|
48
|
-
match: [
|
|
50
|
+
match: [subtotal, "10% of", does not equal, doesn't equal, add up]
|
|
49
51
|
remove-noop:
|
|
50
52
|
kind: broken_promise
|
|
51
53
|
description: "Remove in the cart does nothing"
|
|
@@ -75,7 +77,7 @@ decoys:
|
|
|
75
77
|
match: [freeship, free shipping, free express]
|
|
76
78
|
service-fee:
|
|
77
79
|
description: "The order total is $1.50 more than the cart total: 'A $1.50 service fee is added at checkout'"
|
|
78
|
-
match: [service fee,
|
|
80
|
+
match: [service fee, "$1.50"]
|
|
79
81
|
|
|
80
82
|
# Bugs in one variant don't interfere with each other's tasks. `clean` has no
|
|
81
83
|
# bugs: anything reported there is a false bug.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|