Commit 3570108
committed
refactor(tests): reorganize test architecture and enhance debugging capabilities
This change restructures the test suite for the person management zome as part
of the ongoing Phase 1 completion plan for the Nondominium Holochain hApp.
Based on recent development context, this addresses testing infrastructure
needs identified during the move toward Alpha testing scheduled for July 29th.
The project has been focusing on completing the person management foundation
before implementing resource and governance layers.
Key structural changes:
- Move tests from generic `nondominium/` to domain-specific `person/` directory
- Consolidate test utilities into shared `utils.ts` and `types.d.ts` files
- Replace general TEST_STRATEGY.md with specialized debug test suite
- Enhanced debug logging in zome_person with detailed DHT operation tracking
Technical improvements:
- Added comprehensive debug test suite covering all person management workflows
- Improved error visibility with step-by-step DHT synchronization logging
- Enhanced test utilities for multi-agent scenarios and timing analysis
- Better separation of concerns between foundation, integration, and scenario tests
Debug enhancements in zome_person:
- Added detailed logging for person creation and anchor link operations
- Enhanced get_all_agents function with comprehensive debug output
- Improved error handling and visibility for DHT hash operations
This reorganization supports the upcoming capability-based access control
migration and prepares the testing infrastructure for resource and governance
zome integration in Phase 2.1 parent 69c00b8 commit 3570108
13 files changed
Lines changed: 2344 additions & 1565 deletions
File tree
- dnas/nondominium/zomes/coordinator/zome_person/src
- tests
- src/nondominium
- nondominium
- person
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | | - | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
276 | 282 | | |
277 | 283 | | |
278 | 284 | | |
| 285 | + | |
| 286 | + | |
279 | 287 | | |
280 | 288 | | |
281 | 289 | | |
| 290 | + | |
| 291 | + | |
282 | 292 | | |
283 | 293 | | |
284 | 294 | | |
285 | | - | |
286 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
287 | 298 | | |
288 | 299 | | |
289 | 300 | | |
290 | 301 | | |
291 | 302 | | |
| 303 | + | |
292 | 304 | | |
| 305 | + | |
| 306 | + | |
293 | 307 | | |
| 308 | + | |
| 309 | + | |
294 | 310 | | |
| 311 | + | |
| 312 | + | |
295 | 313 | | |
296 | 314 | | |
297 | 315 | | |
| 316 | + | |
298 | 317 | | |
299 | 318 | | |
300 | 319 | | |
| |||
This file was deleted.
0 commit comments