Skip to content

Add an [EnvironmentVariableSkipCondition] attribute for conditional tests. Make the Aspire project name theory conditional.#1

Merged
ViveliDuCh merged 1 commit intoViveliDuCh:bugfix-6331from
jeffhandley:jeffhandley/conditional-theory
Sep 23, 2025
Merged

Add an [EnvironmentVariableSkipCondition] attribute for conditional tests. Make the Aspire project name theory conditional.#1
ViveliDuCh merged 1 commit intoViveliDuCh:bugfix-6331from
jeffhandley:jeffhandley/conditional-theory

Conversation

@jeffhandley
Copy link
Copy Markdown

Inspired by EnvironmentVariableSkipConditionAttribute.cs (dotnet/aspnetcore).

This lets us have a single [Fact] for verifying one of the test cases for the Aspire project name formatting, while keeping a [Theory] that covers all the scenarios that we can run manually when needed. I suspect we'll end up wanting to do more conditional testing over time like this, so it brings that infrastructure in to support that.

…ests. Make the Aspire project name theory conditional.
@ViveliDuCh ViveliDuCh merged commit e3de840 into ViveliDuCh:bugfix-6331 Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants