Interface IOneShotServerScenario
- Namespace
- Valheim.Testing.GameSessions
- Assembly
- Valheim.Testing.GameSessions.dll
A mod-owned assertion that runs inside one strictly pinned valheim-test server-load campaign.
The toolkit prepares the server, optional clean client, fixture, dependencies, plan and evidence before calling this.
Implement this interface in a .NET 10 test assembly and pass that assembly with --scenario.
public interface IOneShotServerScenario
Properties
Name
A short name recorded with the private run evidence.
string Name { get; }
Property Value
- string
RequiresClient
Whether this assertion opens the prepared clean client. When true, omit --server-only.
bool RequiresClient { get; }
Property Value
- bool
Methods
RunAsync(GameSession, OneShotServerContext)
Exercise and assert using the same owned actors and report as the one-shot preparation. A client scenario can call OpenClient(ClientRunPlan, string?, string?) with ClientPlan; teardown still owns that client if the scenario fails.
Task RunAsync(GameSession session, OneShotServerContext context)
Parameters
sessionGameSessioncontextOneShotServerContext
Returns
- Task