Skip to content

xUnit tests - improve assembly fixture #18381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 17, 2025

Conversation

majocha
Copy link
Contributor

@majocha majocha commented Mar 13, 2025

As per xUnit v2 samples it is better to do custom assembly fixture initialization in the Executor.

The problem with previous code was that any exceptions in custom TestFramework constructor can cause silent failures: the tests still run but the customizations don't work.

Copy link
Contributor

✅ No release notes required

@majocha majocha marked this pull request as ready for review March 13, 2025 18:00
@majocha majocha requested a review from a team as a code owner March 13, 2025 18:00
@psfinaki
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Mar 17, 2025
@psfinaki psfinaki merged commit 977c757 into dotnet:main Mar 17, 2025
33 checks passed
@majocha majocha deleted the tests-assembly-fixture branch March 17, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants