GGua REFERENCE日本語GitHub ↗
DOCS / .NET PACKAGES

.NET packages

External Godot UI tests use three layers. Gua.Core or Gua.Testing on its own does not launch and drive a live Godot process.

Install

Run in the test projectpowershell
dotnet add package Gua.Core --version 0.12.0
dotnet add package Gua.Testing --version 0.12.0
dotnet add package Gua.Testing.Godot --version 0.12.0

Omit the version to select the latest stable NuGet release. Keep all three packages on the same version line.

Gua.Core

The lowest .NET layer over the native C ABI. It defines the UI-tree, request, and event contracts.

TypeResponsibility
IGuaContextThe common operation boundary shared by local and remote contexts.
GuaContextOwns a native Gua context and its nodes, snapshots, requests, and events.
GuaSelectorRepresents selection by ID, role, text, state, and scope.
GuaNodeStateObserved state such as visible, enabled, value, focused, and checked.
GuaAction / GuaEventAn external request and the result or event observed by the host.
GuaResetThe contract for session epochs and clearing requests, events, and retained history.

Gua.Testing

Adds the higher-level API consumed by tests.

TypeResponsibility
GuaAssertionsEntry point for GetById, GetByRole, and WaitFor....
GuaLocatorQueryBuilds selectors with ByRole, ByText, Within, WhereVisible, and related filters.
GuaNodeSnapshotEvidence for a node at the exact frame and revision where a wait succeeded.
GuaTestSessionControls reset and strict leak detection around a test.
GuaAssertionScopeApplies framework failure handling and diagnostic options within a scope.
GuaDiagnosticsWrites the UI tree, logs, history, and environment metadata after a failure.

Gua.Testing.Godot

Starts a Godot process and connects to its in-game WebSocket bridge.

TypeResponsibility
GodotSceneTestHostOwns scene startup, bridge connection, shutdown, process output, and screenshot access.
GodotSceneTestHostOptionsConfigures the executable, project path, headless mode, port, environment, and reset policy.
GuaRemoteContextAn IGuaContext that polls snapshots and sends actions over WebSocket.
GuaRemoteUiTreeConverts a remote JSON snapshot into the .NET node model.
GuaScreenshotRepresents a saved PNG, including its absolute path and dimensions.