You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On ppc64le machine with dotnet7 installed create xunit template project using command dotnet new xunit and built it successfully using dotnet build
Run tests using dotnet test fails with following error
# dotnet test
Determining projects to restore...
All projects are up-to-date for restore.
xunit_sample -> /root/sapana/xunit_sample/bin/Debug/net7.0/xunit_sample.dll
Test run for /root/sapana/xunit_sample/bin/Debug/net7.0/xunit_sample.dll (.NETCoreApp,Version=v7.0)
Microsoft (R) Test Execution Command Line Tool Version 17.4.0+c02ece877c62577810f893c44279ce79af820112 (ppc64le)
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.TestPlatform.ObjectModel.Constants' threw an exception.
---> System.NotSupportedException: Specified method is not supported.
at Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.PlatformEnvironment.get_Architecture()
at Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities.XmlRunSettingsUtilities.get_OSArchitecture()
at Microsoft.VisualStudio.TestPlatform.ObjectModel.Constants..cctor()
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.TestPlatform.ObjectModel.RunConfiguration.FromXml(XmlReader reader)
at Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities.XmlRunSettingsUtilities.GetNodeValue[RunConfiguration](String settingsXml, String nodeName, Func`2 nodeParser)
at Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities.XmlRunSettingsUtilities.GetRunConfigurationNode(String settingsXml)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution.BaseRunTests..ctor(IRequestData requestData, String package, String runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, ITestPlatformEventSource testPlatformEventSource, ITestEventsPublisher testEventsPublisher, IThread platformThread, IDataSerializer dataSerializer)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution.BaseRunTests..ctor(IRequestData requestData, String package, String runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, ITestPlatformEventSource testPlatformEventSource)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution.RunTestsWithSources..ctor(IRequestData requestData, Dictionary`2 adapterSourceMap, String package, String runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, Dictionary`2 executorUriVsSourceList)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution.RunTestsWithSources..ctor(IRequestData requestData, Dictionary`2 adapterSourceMap, String package, String runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution.ExecutionManager.StartTestRun(Dictionary`2 adapterSourceMap, String package, String runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler testCaseEventsHandler, IInternalTestRunEventsHandler runEventsHandler)
Test Run Aborted.
Expected Behavior
One test case should pass as below
A total of 1 test files matched the specified pattern.
Passed! - Failed: 0, Passed: 1, Skipped: 0, Total: 1, Duration: < 1 ms - xunit_sample.dll (net7.0)
Known Workaround
Go to .csproj file and change "Microsoft.NET.Test.Sdk" version from 17.3.2 to 17.4.0 as below <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
The text was updated successfully, but these errors were encountered:
Details
On ppc64le machine with dotnet7 installed create xunit template project using command
dotnet new xunit
and built it successfully usingdotnet build
Run tests using
dotnet test
fails with following errorExpected Behavior
Known Workaround
Go to .csproj file and change "Microsoft.NET.Test.Sdk" version from 17.3.2 to 17.4.0 as below
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
The text was updated successfully, but these errors were encountered: