diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
index 4560f06..05aaf89 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -62,7 +62,7 @@ jobs:
failed=0
for tfm in "${frameworks[@]}"; do
echo "::group::Testing $tfm"
- if ! (cd src && dotnet test ByteAether.Ulid.slnx --configuration CI-Debug -p:ImplTargetFramework=$tfm --report-trx --report-trx-filename "results-$tfm.trx"); then
+ if ! (cd src && dotnet test ByteAether.Ulid.slnx --configuration CI-Debug -p:ImplTargetFramework=$tfm --results-directory "../TestResults"); then
echo "❌ Tests failed for $tfm"
failed=1
fi
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 61464e5..50331e2 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -27,6 +27,8 @@
net10.0
+
+ $(TestingPlatformCommandLineArguments) --report-trx --report-trx-filename $(MSBuildProjectName)-$(ImplTargetFramework).trx
true