Skip to content

chore: Cleanup test projects files#3087

Open
filzrev wants to merge 3 commits intodotnet:masterfrom
filzrev:chore-cleanup-test-codes
Open

chore: Cleanup test projects files#3087
filzrev wants to merge 3 commits intodotnet:masterfrom
filzrev:chore-cleanup-test-codes

Conversation

@filzrev
Copy link
Copy Markdown
Contributor

@filzrev filzrev commented Apr 18, 2026

What's changed in this PR

1. Modify code to use ImplicitUsing

Remove following namespace's using and add ImplicitUsing on project file instead.

  • Xunit
  • Xunit.Abstrattions

It's needed to simplify code changes on xUnit v3/tUnit migrations (#3065)

2. Modify structure of files that are shared between projects

Move these files under Shared directory.
And modify Compile item include/links to use wildcard when possible.
(e.g <Compile Include="..\BenchmarkDotNet.IntegrationTests\Shared\**\*.cs" Link="Shared\%(RecursiveDir)%(Filename)%(Extension)" />)

3. Remove UTF-8 BOM on modified files
Additionally UTF8 BOM is removed on modified files.
Note: dotnet format command will be applied on solution-level later. (Currently it's not executed to avoid code conflict with existing PRs)

4. Modify xUnit assembly name for DataDiscoverer
It's required because Benchmark.Tests assembly reference on IntegrationTests are replaced to source-based link.
In any way, DataDiscoverer will be removed when migrated to xUnit.v3 because it's not supported on xUnitv3.

@filzrev filzrev force-pushed the chore-cleanup-test-codes branch from 74f4c1c to d607de6 Compare April 18, 2026 04:00
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.

1 participant