How notorious-coding/notorious-test works
NotoriousTest is a .NET integration-testing framework that provisions isolated dependencies, shares their configuration with applications under test, resets state between tests, and tears resources down. The principal flow is test framework fixture → environment orchestration → infrastructure lifecycle → test use, with registry/watchdog recovery alongside it. README capabilities include multiple test-framework adapters and database, container, web, and Azure Functions integrations. Several integration nodes are documented but their implementations were not sampled; their relationships are shown only where documented.
Main entry points: EnvironmentBase.cs Environment orchestration · DatabaseInfrastructureBase.cs Database lifecycle · Infrastructure.cs Infrastructure lifecycle · SqliteRegistryProvider.cs Infrastructure registry
Components 22
Test entry points
- Integration tests
README.md - Framework adapters
NotoriousTest.XUnit/IntegrationTestBase.cs - Test fixtures
NotoriousTest.Core/Fixture.cs
Environment lifecycle
- Environment orchestration
NotoriousTest.Core/Environments/EnvironmentBase.cs - Infrastructure lifecycle
NotoriousTest.Core/Infrastructures/Infrastructure.cs - Shared configuration
NotoriousTest.Core/Configuration/ConfigurationEntry.cs - Requirements and dependencies
NotoriousTest.Core/Infrastructures/Dependencies/IInfrastructureDependency.cs - Runtime settings
NotoriousTest.Internal.TestSettings/TestSettingsProvider.cs
Infrastructure integrations
- Database lifecycle
NotoriousTest.Database/DatabaseInfrastructureBase.cs - Docker databases
NotoriousTest.Database/DockerDatabaseInfrastructure.cs - External databases
NotoriousTest.Database/ExternalDatabaseInfrastructure.cs - SQLite provider
NotoriousTest.Sqlite/SqliteInfrastructure.cs - SQL providers
NotoriousTest.SqlServer/SqlServerInfrastructure.cs - PostgreSQL provider
NotoriousTest.PostgreSql/PostgreInfrastructure.cs - Container infrastructure
NotoriousTest.TestContainers/DockerContainerInfrastructure.cs - ASP.NET integration
NotoriousTest.Web/Applications/WebApplication.cs - Azure Functions
NotoriousTest.Web.AzureFunctions/AzureFunctionWebApplication.cs - Azure tooling dependency
NotoriousTest.Dependencies.Azure.FunctionCoreTools/AzureFunctionCoreToolsDependency.cs
Crash recovery
- Infrastructure registry
NotoriousTest.Internal.SqlLiteRegistry/SqliteRegistryProvider.cs - Watchdog service
NotoriousTest.Internal.Watchdog/DoggyDogWatchDog.cs - Recovery process
DoggyDog/Program.cs
Other components
- Test author
Connections 28
- Test author → Integration tests: writes
README.md - Integration tests → Framework adapters: runs through
README.md - Framework adapters → Test fixtures: uses
- Test fixtures → Environment orchestration: creates
NotoriousTest.Core/Fixture.cs - Environment orchestration → Infrastructure lifecycle: initializes
NotoriousTest.Core/Environments/EnvironmentBase.cs - Environment orchestration → Requirements and dependencies: verifies and installs
NotoriousTest.Core/Environments/EnvironmentBase.cs - Environment orchestration → Shared configuration: aggregates
NotoriousTest.Core/Environments/EnvironmentBase.cs - Infrastructure lifecycle → Infrastructure registry: registers and updates
NotoriousTest.Core/Infrastructures/Infrastructure.cs - Database lifecycle → Infrastructure lifecycle: extends lifecycle
NotoriousTest.Database/DatabaseInfrastructureBase.cs - Docker databases → Database lifecycle: starts container then initializes
NotoriousTest.Database/DockerDatabaseInfrastructure.cs - External databases → Database lifecycle: initializes from settings
NotoriousTest.Database/ExternalDatabaseInfrastructure.cs - SQLite provider → External databases: extends provider
NotoriousTest.Sqlite/SqliteInfrastructure.cs - SQL providers → Database lifecycle: provides SQL infrastructure
- PostgreSQL provider → External databases: extends provider
NotoriousTest.PostgreSql/PostgreInfrastructure.cs - Container infrastructure → Infrastructure lifecycle: provides containers
- ASP.NET integration → Shared configuration: receives shared settings
README.md - Azure Functions → Azure tooling dependency: uses tooling dependency
NotoriousTest.Web.AzureFunctions/AzureFunctionWebApplication.cs - Environment orchestration → Infrastructure registry: ensures registry
NotoriousTest.Core/Environments/EnvironmentBase.cs - Environment orchestration → Watchdog service: starts and signals
NotoriousTest.Core/Environments/EnvironmentBase.cs - Watchdog service → Infrastructure registry: configures registry access
NotoriousTest.Internal.Watchdog/DoggyDogWatchDog.cs - Recovery process → Infrastructure registry: loads registry
DoggyDog/Program.cs - Recovery process → Watchdog service: runs recovery
- Environment orchestration → Runtime settings: receives settings
- Environment orchestration → Integration tests: supports reset between tests
README.md - Environment orchestration → Infrastructure lifecycle: destroys resources
NotoriousTest.Core/Environments/EnvironmentBase.cs - Database lifecycle → Shared configuration: publishes connection settings
README.md - Database lifecycle → Infrastructure lifecycle: resets database state
NotoriousTest.Database/DatabaseInfrastructureBase.cs - Environment orchestration → Recovery process: recovers after crashes
README.md