Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "testutil", fx.Provide(config.NewTestConfig), oteltest.Module, dbtest.Module, llmtest.Module, answer.Module, question.Module, generator.Module, fx.Provide(answer.NewRepository), fx.Provide(question.NewRepository), )
Module defines a reusable module so that we do not need to manually provide all the dependencies in every test suite. It also provides test-specific defaults. Module DOES NOT include servertest.Module. Use ModuleWithAPI for that instead.
View Source
var ModuleWithHTTP = fx.Module( "testutil-with-http", Module, grpc.Module, resttest.Module, grpclient.Module, )
ModuleWithHTTP injects the main testutil.Module plus REST & GRPC related modules. It is intended to be used in test suites that require server interactions, as it also turns on the API server, manages its lifecycle, and waits for it to be ready before running tests.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.