1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-08 09:05:34 +00:00
testscript-rs/tests
Jason Hall 0c4315ece8
Refactor run module into modular structure (#18)
## Summary

Refactors the monolithic `run.rs` file into a clean modular structure to
improve maintainability and code organization.

### Changes

- **Split `run.rs` into focused modules:**
  - `run/environment.rs` - TestEnvironment and file operations
  - `run/params.rs` - RunParams configuration and conditions  
  - `run/commands.rs` - Built-in command implementations
  - `run/execution.rs` - Command dispatch and execution logic
  - `run/mod.rs` - Public API coordination

### Benefits

- **Better maintainability** - Each file has clear responsibility
- **Easier navigation** - Find specific functionality quickly
- **Separation of concerns** - Commands, config, environment isolated
- **Prepares for future features** - Clean foundation for WorkdirRoot
and other enhancements

### Test Plan

- [x] All 37 tests still pass
- [x] No functionality changes
- [x] Clean compilation with no warnings
- [x] Pre-commit hooks pass (formatting, linting, compilation)

This is a pure refactoring with no behavior changes - just improved code
organization.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-27 01:17:45 +00:00
..
builtin_commands.rs improve error messages with context (#13) 2025-09-26 23:55:13 +00:00
edge_cases.rs Refactor run module into modular structure (#18) 2025-09-27 01:17:45 +00:00
error_messages.rs improve error messages with context (#13) 2025-09-26 23:55:13 +00:00
integration.rs add GHA workflow (#1) 2025-09-26 19:08:48 -04:00
setup_hook.rs add GHA workflow (#1) 2025-09-26 19:08:48 -04:00