Skip to content

Conversation

@CZEMacLeod
Copy link
Owner

Add fluent methods to help with configuration, depending on environment, operation mode, and whether the host is under test.

Add OutputWatcher unit tests.

PR Classification

New feature implementation and project restructuring.

PR Summary

This pull request introduces new projects and enhancements to the existing solution, improving the handling of IIS Express projects and adding new functionality for testing environments. Key changes include:

  • C3D.Extensions.Aspire.sln: Added new projects like C3D.Extensions.Aspire.Fluent, Aspire, C3D, and Extensions.
  • Program.cs: Introduced methods for configuring application behavior based on execution context, such as WhenDebugMode and WhenUnderTest.
  • AspireAppHostSWA.csproj and AspireAppHostWaitForConsole.csproj: Updated to reference the new C3D.Extensions.Aspire.Fluent project.
  • Directory.Build.props and Directory.Build.targets: Enhanced with new properties and imports for improved build processes.
  • New classes in C3D.Extensions.Aspire.Fluent: Added UnderTestAnnotation, StackTraceExtensions, and UnderTestExtensions for managing test environments.

CZEMacLeod added 13 commits May 1, 2025 05:56
Refactor debugging and IIS Express configuration

Enhance debugging capabilities and streamline IIS Express setup.
Updated `Program.cs` to support temporary configurations in test mode.
Modified `IISExpressEntensions` for better resource management.
Introduced new methods in `DebugResourceExtensions` for environment checks.
Updated `DebugBuilderExtensions` to activate debugging features conditionally.
Improved HTTP client configuration in `SWAIntegrationTests`.
Added `IISExpressDebugExtensions` for a cleaner debugging interface.
Introduce a new static class `EnvironmentExtensions` with methods
like `WhenHostEnvironment`, `WhenDevelopment`, `WhenStaging`,
and `WhenProduction` to facilitate conditional execution based
on the hosting environment.
@CZEMacLeod CZEMacLeod linked an issue May 12, 2025 that may be closed by this pull request
@CZEMacLeod CZEMacLeod added the enhancement New feature or request label May 12, 2025
@CZEMacLeod CZEMacLeod merged commit 6d13d80 into main May 12, 2025
1 check passed
@CZEMacLeod CZEMacLeod deleted the feature-unittest-detection branch May 12, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests to check the various features

2 participants