docs(test_framework): add comprehensive integration test guide and fix runner blocking issue
- Document exception handling, zero-value BotResult trap, shared adversary bots - Add offline parsing example using parseServerOutput - Skip tests gracefully when JARs missing (guard before suite blocks) - Fix blocking readLine in runner_process.nim: poll with 50ms sleep + atEnd check (was preventing timeout enforcement, now blocks correctly during battle) - Add test task to QBot.nimble and config.nims setup docs to AGENTS.md - Add debug logging to TestBattleRunner for bot identity tracking Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import test_framework/test_framework
|
||||
|
||||
const
|
||||
oscillatorDir = currentSourcePath().parentDir.parentDir # OscillatorBot_garage/
|
||||
sittingDuckDir = currentSourcePath().parentDir / "bots" / "SittingDuck"
|
||||
sittingDuckDir = currentSourcePath().parentDir.parentDir.parentDir / "common_libs" / "test_framework" / "adversaries" / "SittingDuck"
|
||||
|
||||
suite "OscillatorBot basic battle":
|
||||
test "beats SittingDuck in 3 rounds":
|
||||
|
||||
Reference in New Issue
Block a user