How fim-sh/teshter works
Teshter generates commands from test-suite queries, runs those commands in isolated Docker containers, and checks their results with per-test setup and verification scripts. The main process loads and combines suite/test configuration, coordinates parallel generation and execution, then writes aggregated YAML results. The runner prepares a work directory, executes setup, command, and verification stages, and returns a structured report. README documents the Wish and Docker integrations; the graph omits implementation details for the Docker image and unsampled runner deployment.
Main entry points: src/main.rs Run Orchestrator · src/main.rs Runner CLI · whale.rs Execution Manager · fairy.rs Generation Manager
Components 20
Orchestration
- Run Orchestrator
teshter/src/main.rs - Testcase Builder
teshter/src/testsuite.rs
Command Generation
- Generation Manager
teshter/src/fairy.rs - Command Generator
teshter/src/fairy.rs
Container Execution
- Execution Manager
teshter/src/whale.rs - Docker Worker
teshter/src/whale.rs
Test Runner
- Runner CLI
teshter-runner/src/main.rs - Workspace Setup
teshter-runner/src/main.rs - Test Setup
teshter-runner/src/main.rs - Command Execution
teshter-runner/src/main.rs - Result Verification
teshter-runner/src/main.rs - Process Runner
teshter-runner/src/utils.rs
Results
- Runner Report
teshter-runner/src/raport.rs - Result Aggregation
teshter/src/whale.rs - YAML Report
teshter/src/main.rs
Other components
- Framework User
- Suite Configuration
- Test Configuration
- Wish LLM Client
- Docker Engine
Connections 29
- Framework User → Run Orchestrator: starts run
README.md - Framework User → Suite Configuration: provides suite
README.md - Framework User → Test Configuration: provides tests
- Run Orchestrator → Suite Configuration: loads configuration
teshter/src/main.rs - Run Orchestrator → Test Configuration: loads configuration
teshter/src/main.rs - Run Orchestrator → Testcase Builder: builds testcases
teshter/src/main.rs - Testcase Builder → Generation Manager: supplies testcases
teshter/src/main.rs - Testcase Builder → Execution Manager: supplies testcases
teshter/src/main.rs - Run Orchestrator → Generation Manager: starts generation
teshter/src/main.rs - Run Orchestrator → Execution Manager: starts execution
teshter/src/main.rs - Generation Manager → Command Generator: dispatches tasks
teshter/src/fairy.rs - Command Generator → Wish LLM Client: requests commands
README.md - Generation Manager → Execution Manager: sends generated outputs
teshter/src/main.rs - Execution Manager → Docker Worker: dispatches commands
teshter/src/whale.rs - Docker Worker → Docker Engine: runs container
teshter/src/whale.rs - Docker Engine → Runner CLI: starts runner
README.md - Runner CLI → Workspace Setup: prepares workspace
teshter-runner/src/main.rs - Runner CLI → Test Setup: runs setup
teshter-runner/src/main.rs - Runner CLI → Command Execution: runs tested command
teshter-runner/src/main.rs - Runner CLI → Result Verification: runs verification
teshter-runner/src/main.rs - Workspace Setup → Process Runner: copies files
teshter-runner/src/main.rs - Test Setup → Process Runner: executes script
teshter-runner/src/main.rs - Command Execution → Process Runner: executes command
teshter-runner/src/main.rs - Result Verification → Process Runner: executes verifier
teshter-runner/src/main.rs - Runner CLI → Runner Report: constructs report
teshter-runner/src/main.rs - Docker Worker → Runner Report: parses runner output
teshter/src/whale.rs - Execution Manager → Result Aggregation: classifies outcomes
teshter/src/whale.rs - Result Aggregation → Run Orchestrator: returns results
teshter/src/main.rs - Run Orchestrator → YAML Report: writes YAML
teshter/src/main.rs