Module test

Source
Expand description

Test utilities for running and interacting with a GraphQL gateway.

This module provides functionality for:

  • Configuring and starting a gateway instance
  • Executing GraphQL queries against the gateway
  • Building and loading extensions

Structs§

DynamicSchema
A dynamic GraphQL schema that can be built and executed at runtime.
DynamicSubgraph
A dynamic subgraph implementation that can be started as a mock GraphQL server.
ExtensionOnlySubgraph
A subgraph that only contains extension definitions. We do not spawn a GraphQL server for this subgraph.
QueryBuilder
A builder for constructing GraphQL queries with customizable parameters and headers.
TestConfig
Configuration for test cases.
TestConfigBuilder
Builder pattern to create a TestConfig.
TestRunner
A test runner that can start a gateway and execute GraphQL queries against it.

Enums§

LogLevel
Log level for the test process output. Default value is LogLevel::Error.