# CLI Testing Collection
### Scope
- **Purpose**: Document integration and edge case test plans for all clg commands, parameters, types, and export formats.
- **Responsibility**: Index of per-command, per-parameter, per-group, per-type, per-format, and per-user-story test case planning files.
- **In Scope**: All 11 clg commands, all 22 parameters, all 5 parameter groups, all 14 types, all 3 export formats, and all 5 user stories.
- **Out of Scope**: Automated test implementations (→ `tests/` in crate), spec documentation (→ `docs/feature/`).
6-tier testing organization for `claude_storage` CLI, providing distinct audience focus at each level.
### Responsibility Table
| `command/` | Integration test cases per command |
| `param/` | Edge case tests per parameter |
| `param_group/` | Interaction tests per parameter group |
| `type/` | Type constraint validation tests per type |
| `format/` | Export output format verification tests per format |
| `user_story/` | Acceptance criterion tests per user story |
### Overview
| Type | `type/*.md` | Validate type parsing, constraints, and error messages | Developers | Type constraint tests |
| Parameter | `param/*.md` | Validate individual parameter parsing and constraints | Developers | Unit tests, edge cases |
| Group | `param_group/*.md` | Test parameter interactions within groups | Developers | Corner cases, dependencies |
| Command | `command/*.md` | End-to-end command integration | QA / Users | Integration tests, workflows |
| Format | `format/*.md` | Verify export output conforms to format specifications | QA / Users | Format verification tests |
| User Story | `user_story/*.md` | Verify acceptance criteria per user story | QA / Users | Real-world scenario tests |
### Navigation
- [Command Tests](command/) — Integration tests per command
- [Parameter Tests](param/) — Edge case tests per parameter
- [Parameter Group Tests](param_group/) — Interaction tests per group
- [Type Tests](type/) — Type constraint tests per type
- [Format Tests](format/) — Export format verification tests per format
- [User Story Tests](user_story/) — Acceptance criterion tests per user story
### Aggregate Counts
| Commands | 11 files | 149 tests |
| Parameters | 22 files | 148 tests |
| Parameter Groups | 5 files | 31 tests |
| Types | 14 files | 70 tests |
| Formats | 3 files | 15 tests |
| User Stories | 5 files | 25 tests |
| **Total** | **60 files** | **438 tests** |
### Test ID Conventions
| `INT-N` | Integration test | Command tests (`command/`) |
| `EC-N` | Edge case | Parameter tests (`param/`) |
| `CC-N` | Cross-command interaction | Parameter group tests (`param_group/`) |
| `TC-N` | Type constraint | Type validation tests (`type/`) |
| `FM-N` | Format specification | Export format tests (`format/`) |
| `RWS-N` | Real-world scenario | User story acceptance tests (`user_story/`) |
### Related Documentation
- [command/readme.md](../../../../docs/cli/command/readme.md) — Command specifications
- [param/readme.md](../../../../docs/cli/param/readme.md) — Parameter specifications
- [param_group/readme.md](../../../../docs/cli/param_group/readme.md) — Group specifications
- [type/readme.md](../../../../docs/cli/type/readme.md) — Type specifications
- [format/readme.md](../../../../docs/cli/format/readme.md) — Export format specifications