Commit Graph
2 Commits
Author SHA1 Message Date
MrFastwind 234116e6a1 test(backend): add tests for SERVER_BINARY, SERVER_PARAMS, STEAMCMD_PATH env vars
- TestStartWithServerBinaryEnv: custom binary name via env
- TestStartWithServerParamsEnv: overridden params via env
- TestServerParamsEnvOverridesSettings: env takes precedence over settings
- TestSteamCmdManager_SteampathEnv: custom steamcmd path via env
2026-07-23 20:39:24 +02:00
MrFastwind bc23ad7daa test(backend): add process manager and steamcmd tests with stub scripts
- server_process_test.go: 16 tests covering splitArgs, hasArgPrefix,
  buildAutoArgs (config/port/profiles), buildArgs, resolveModPath (name/
  ID/empty), buildModPath, WriteUserconfigFiles, Start/Stop lifecycle,
  percent-command substitution
- steamcmd_test.go: 9 tests covering CheckWorkshopMod (directory/file/
  empty), SteamCmdManager state machine, DownloadMods/UpdateGame
- testdata/: stub arma3server_x64 and steamcmd scripts for safe process
  testing without real binaries
2026-07-23 20:23:31 +02:00