Add optional mod test fuel profiling

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
2026-11-03 11:06:44 +03:00
parent ed7615d362
commit f95f03c08e
5 changed files with 78 additions and 3 deletions
+2
View File
@@ -248,6 +248,8 @@ key> --signature <file>.minisig`.
### Testing a mod
For a fuel diagnostic, add `--fuel-profile`: each script reports callback call counts, peak guest fuel, budget and failures, even when the script fails. Host work and rendering are not measured; a reload resets the profile.
`cargo horizon-mod test` builds the mod, then runs each `tests/<name>.toml` in
the sandbox the game uses, with no game and no window: the test plays the
game's part (the player and the clock the mod reads, ticks, frames, chat lines,