Document exceptions, parseServerOutput, and compile behavior in README #136
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #135
Question
Update
common_libs/test_framework/README.mdto close the documentation gaps LLM simulations surfaced:runBattle()can raiseOSError(compilation failure),IOError(runner non-zero exit),TimeoutError(any timeout). Show a try/except example.parseServerOutput: Document this exported proc frombattle_result.nim. Show how to use it for fast offline parser tests without needing Java/server. Include a fixture example.compileBotsruns on everyrunBattle()call (no caching). If running multiple tests, each call recompiles. Mention this so users aren't surprised.runBattle'stimeoutparam).r.resultsby name returns a zeroed struct if not found — recommend guarding withcheck found.name == "MyBot".TR_SERVER_JAR/TR_BATTLE_RUNNERare not set.SirStone referenced this issue2026-08-30 15:03:05 +02:00
Done — added exceptions table, parseServerOutput section, compile behavior note, zero-value trap warning, env-var skip pattern, shared adversaries note to README.