Commit 4524d26
committed
feat(tinyclaw): add integration tests and lib.rs for skills
Create lib.rs to export public API for integration tests:
- Export agent, bus, channel, channels, config modules
- Export format, session, skills, tools modules
- Enable external testing of skills system
Add comprehensive integration tests (13 tests):
- test_skill_save_and_load: Persistence roundtrip
- test_skill_list_and_delete: CRUD operations
- test_skill_execution_success: End-to-end execution
- test_skill_execution_with_defaults: Default input handling
- test_skill_execution_missing_required_input: Validation
- test_skill_execution_timeout: Timeout behavior
- test_skill_execution_cancellation: Cancel functionality
- test_execution_report_generation: Report creation
- test_progress_monitoring: Real-time progress tracking
- test_complex_skill_with_all_step_types: Tool/LLM/Shell steps
- test_skill_versioning: Version overwrite behavior
- test_empty_skill_execution: Edge case handling
- test_skill_with_many_inputs: Multiple input handling
Total: 115 tests passing (102 unit + 13 integration)1 parent 055e93a commit 4524d26
2 files changed
Lines changed: 516 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments