Commit b7a325b
Refactor/rstest migration (#109)
* docs: Planifications
* chore: add rstest dev-dependency, derive PartialEq on InputAction
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: convert input.rs tests to rstest parameterization (42 -> 7 functions)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: convert theme.rs color roundtrip tests to rstest (7 -> 5 functions)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: commit cargo lock
* refactor: convert db.rs tests to rstest fixtures + parameterize round-trips
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: convert signal/client.rs tests to rstest parameterization (39 -> 32 functions)
Parameterized: call messages, receipt variants, expiration variants,
sticker variants, and view-once variants. Added make_resp() helper to
reduce JsonRpcResponse boilerplate.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: convert app.rs tests to rstest fixtures + parameterization
- Convert test_app() to #[fixture] fn app() -> App
- Update all 114 tests from #[test] + test_app() to #[rstest] + fixture injection
- Parameterize 8 groups: resolve_mentions (4→1), bell_skipped (2→1),
read_receipts (2→1), block_already_in_state (2→1), block_no_active (2→1),
mouse_scroll (3→1), conversation_acceptance (2→1), group_menu_items (3→1),
clears_attachment (2→1)
- 119 → 102 test functions, all 119 test cases preserved
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: Include notes on testing in dev guid
* fix: remove plans
* refactor: split over-parameterized tests into separate functions
Five tests used string case labels with match/unreachable!() to dispatch
distinct setup logic, which obscures intent and conflates unrelated scenarios.
Split each into dedicated #[rstest] functions while keeping fixture injection.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: lint
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent b846eaf commit b7a325b
File tree
9 files changed
+864
-1116
lines changed- docs/src/dev-guide
- src
- signal
9 files changed
+864
-1116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
26 | 88 | | |
27 | 89 | | |
28 | 90 | | |
| |||
0 commit comments