-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
Description
Using Microsoft.NET.Test.Sdk v17.14.1 and xunit.v3 2.0.3.
dotnet test --logger trx
Produces a TRX file that includes a Property for "Category? with a Value of "Integration". When I try to open this file in Microsoft Visual Studio Enterprise 2022 (64-bit) - Version 17.14.5. I get a schema validation error.
I believe Visual Studio is expecting the Property element to have children instead of inline values.
<Properties>
<Property>
<Key>Category</Key>
<Value>Integration</Value>
</Property>
</Properties>
TRX File subset:
<UnitTest name="NetworkingSystemBase_OutputAllNetworkInterfaceScoredUnicastAddress" storage="c:\a\platform\platform\bin\networkvisor.platform.test.netcore.integrationtests\release-windows\net9.0\networkvisor.platform.test.netcore.integrationtests.dll" id="43ce4a59-f8bf-cebc-7f95-4208b3d77baa">
<Properties>
<Property Key="Category" Value="Integration" />
</Properties>
<Execution id="1a89c4f9-5f4d-4ebe-bd58-328f731e5e93" />
<TestMethod codeBase="C:\a\Platform\Platform\bin\NetworkVisor.Platform.Test.NetCore.IntegrationTests\Release-Windows\net9.0\NetworkVisor.Platform.Test.NetCore.IntegrationTests.dll" adapterTypeName="executor://xunit/VsTestRunner3/netcore/" className="NetworkVisor.Platform.Test.Shared.IntegrationTests.Networking.CoreNetworkingSystemBaseIntegrationTests" name="NetworkingSystemBase_OutputAllNetworkInterfaceScoredUnicastAddress" />
</UnitTest>
Expected Result: The TRX file should open in Visual Studio.
Actual Result: System.Exception and XSD Validation Errors.
Result:
C:\Users\stevebu\Downloads\testResults-Windows\netcore\NetworkVisor.Platform.Test.NetCore.IntegrationTests\TestResults\runneradmin_runnervmdy573_2025-06-18_19_03_36.trx:
(Line: 24988, Position: 19). XSD violation: The 'Key' attribute is not declared.
(Line: 24988, Position: 34). XSD violation: The 'Value' attribute is not declared.