Add optional mod test fuel profiling
Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user