Create example integration test in one garage #131

Closed
opened 2026-08-30 10:22:08 +02:00 by SirStone · 1 comment
Owner

Wayfinder child of: #126

Create a working integration test in one existing garage (e.g. OscillatorBot or PPO_Bot) that demonstrates the framework. Include: a test-specific adversary bot, a test scenario with InitialPosition, assertions on BattleResult. This validates the framework works end-to-end and serves as documentation.

Blocked by: #130

Grilling Revisions

Test discovery: The example test must be imported in the garage's tests/tall.nim entry point (nimble only finds tests/t*.nim at top level, does not recurse into subdirectories).

Initial positions: functional in v1 via external server with -I flag. Example test can demonstrate deterministic positioning.

Structure example:

OscillatorBot_garage/tests/
├── tall.nim                          # Entry point, imports all test modules
├── test_unit.nim                     # Existing unit tests
└── avoidance/
    ├── test_avoidance.nim            # Integration test (imported by tall.nim)
    └── standing_target.nim           # Test-specific adversary bot
**Wayfinder child of:** #126 Create a working integration test in one existing garage (e.g. OscillatorBot or PPO_Bot) that demonstrates the framework. Include: a test-specific adversary bot, a test scenario with InitialPosition, assertions on BattleResult. This validates the framework works end-to-end and serves as documentation. **Blocked by:** #130 ### Grilling Revisions **Test discovery**: The example test must be imported in the garage's `tests/tall.nim` entry point (nimble only finds `tests/t*.nim` at top level, does not recurse into subdirectories). **Initial positions**: functional in v1 via external server with `-I` flag. Example test can demonstrate deterministic positioning. **Structure example:** ``` OscillatorBot_garage/tests/ ├── tall.nim # Entry point, imports all test modules ├── test_unit.nim # Existing unit tests └── avoidance/ ├── test_avoidance.nim # Integration test (imported by tall.nim) └── standing_target.nim # Test-specific adversary bot ```
SirStone added the wayfinder:task label 2026-08-30 10:22:08 +02:00
Author
Owner

Implemented in commit 57a1915.

Implemented in commit 57a1915.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#131