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.
Files changed (56) hide show
  1. {fusiontest-0.2.23 → fusiontest-0.2.24}/PKG-INFO +1 -1
  2. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/__init__.py +10 -0
  3. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/suites/shop-bugs.yaml +6 -4
  4. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/PKG-INFO +1 -1
  5. {fusiontest-0.2.23 → fusiontest-0.2.24}/pyproject.toml +1 -1
  6. {fusiontest-0.2.23 → fusiontest-0.2.24}/README.md +0 -0
  7. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/__init__.py +0 -0
  8. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/sites/shop/bugs.js +0 -0
  9. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/sites/shop/help.html +0 -0
  10. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/sites/shop/index.html +0 -0
  11. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/suites/shop.yaml +0 -0
  12. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/bench/suites/todomvc.yaml +0 -0
  13. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/cli.py +0 -0
  14. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/__init__.py +0 -0
  15. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/action_model.py +0 -0
  16. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/app_errors.py +0 -0
  17. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/goal_verifier.py +0 -0
  18. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/netguard.py +0 -0
  19. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/promise_checker.py +0 -0
  20. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/replay.py +0 -0
  21. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/runner.py +0 -0
  22. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/screen_parser.py +0 -0
  23. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/secrets.py +0 -0
  24. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/shared_traces.py +0 -0
  25. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/core/tokens.py +0 -0
  26. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/__init__.py +0 -0
  27. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/fusiontest_dashboard.yaml +0 -0
  28. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/github.yaml +0 -0
  29. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/hacker_news.yaml +0 -0
  30. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/httpbin.yaml +0 -0
  31. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/todomvc.yaml +0 -0
  32. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/demos/wikipedia.yaml +0 -0
  33. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/desktop/__init__.py +0 -0
  34. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/desktop/macos_adapter.py +0 -0
  35. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/desktop/playwright_adapter.py +0 -0
  36. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/desktop/windows_adapter.py +0 -0
  37. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/discovery/__init__.py +0 -0
  38. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/discovery/goal_generator.py +0 -0
  39. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/guardrails/__init__.py +0 -0
  40. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/guardrails/engine.py +0 -0
  41. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/mobile/__init__.py +0 -0
  42. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/mobile/android_adapter.py +0 -0
  43. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/mobile/ios_adapter.py +0 -0
  44. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/reporting/__init__.py +0 -0
  45. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/reporting/reporter.py +0 -0
  46. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/training/__init__.py +0 -0
  47. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/training/data_collector.py +0 -0
  48. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/training/dataset_builder.py +0 -0
  49. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest/training/trainer.py +0 -0
  50. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/SOURCES.txt +0 -0
  51. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/dependency_links.txt +0 -0
  52. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/entry_points.txt +0 -0
  53. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/not-zip-safe +0 -0
  54. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/requires.txt +0 -0
  55. {fusiontest-0.2.23 → fusiontest-0.2.24}/fusiontest.egg-info/top_level.txt +0 -0
  56. {fusiontest-0.2.23 → fusiontest-0.2.24}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fusiontest
3
- Version: 0.2.23
3
+ Version: 0.2.24
4
4
  Summary: AI-powered UI testing for mobile and desktop — by FusionLeap.io
5
5
  Author-email: FusionLeap <hello@fusionleap.io>
6
6
  License: MIT
@@ -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: 2 # v2: decoys and the tasks that reach them
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: [total, sum, subtotal]
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, fee, "$1.50"]
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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fusiontest
3
- Version: 0.2.23
3
+ Version: 0.2.24
4
4
  Summary: AI-powered UI testing for mobile and desktop — by FusionLeap.io
5
5
  Author-email: FusionLeap <hello@fusionleap.io>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "fusiontest"
7
- version = "0.2.23"
7
+ version = "0.2.24"
8
8
  description = "AI-powered UI testing for mobile and desktop — by FusionLeap.io"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes