Azure devops not running xunit tests

0 votes

No test is available in C:\stuff\Debug\x64\bin\x86\ilc\MyApp.Test.dll some_other_dlls Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

I see this log message in the test run log. . I have xunit.runner.VisualStudio package installed. What I am missing, is why Azure ignores my tests?

**************** Starting test execution *********************

\vstest.console.exe "@C:\path\fadisfjla.tmp"

Microsoft (R) Test Execution Command Line Tool Version 16.4.0

Copyright (c) Microsoft Corporation. All rights reserved.

vstest.console.exe "C:\dir\Release\x64\bin\arm\MyApp.Test\testhost.dll"

"C:\dir\Release\x64\bin\arm\MyApp.Test\xunit.runner.visualstudio.uwp.testadapter.dll"

"C:\dir\Release\x64\bin\arm\ilc\MyApp.Test.dll"

"C:\dir\Release\x64\bin\x86\MyApp.Test\testhost.dll"

"C:\dir\Release\x64\bin\x86\MyApp.Test\xunit.runner.visualstudio.uwp.testadapter.dll"

"C:\dir\Release\x64\bin\x86\ilc\MyApp.Test.dll"

/Settings:"C:\tmp\fadslfj.tmp.runsettings"

/EnableCodeCoverage

/Logger:"trx"

/TestAdapterPath:"C:\dir\Release\x64"

Starting test execution, please wait...

Test run will use DLL(s) built for framework .NETFramework,Version=v4.0 and platform X86. Following DLL(s) do not match framework/platform settings.

testhost.dll is built for Framework .NETStandard,Version=v1.4 and Platform AnyCPU.

xunit.runner.visualstudio.uwp.testadapter.dll is built for Framework .NETCore,Version=v5.0 and Platform AnyCPU.

MyApp.Test.dll is built for Framework .NETFramework,Version=v4.0 and Platform ARM.

testhost.dll is built for Framework .NETStandard,Version=v1.4 and Platform AnyCPU.

xunit.runner.visualstudio.uwp.testadapter.dll is built for Framework .NETCore,Version=v5.0 and Platform AnyCPU.

Go to more details on managing these settings.

Microsoft (R) Coverage Collection Tool Version 16.0.30319.200

Copyright (c) Microsoft Corporation. All rights reserved.

1.5873

A total of 6 test files matched the specified pattern.

No test is available in C:\dir\Release\x64\bin\arm\MyApp.Test\testhost.dll C:\dir\Release\x64\bin\arm\MyApp.Test\xunit.runner.visualstudio.uwp.testadapter.dll C:\dir\Release\x64\bin\arm\ilc\MyApp.Test.dll C:\dir\Release\x64\bin\x86\MyApp.Test\testhost.dll C:\dir\Release\x64\bin\x86\MyApp.Test\xunit.runner.visualstudio.uwp.testadapter.dll C:\dir\Release\x64\bin\x86\ilc\MyApp.Test.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

Microsoft (R) Coverage Collection Tool Version 16.0.30319.200

Copyright (c) Microsoft Corporation. All rights reserved.

Results File: C:\path\fdsfdsfd.trx

Attachments:

  C:\path\file-dfsfdsfe.coverage

Vstest.console.exe exited with code 0.

In my project file:

    <PackageReference Include="xunit.runner.visualstudio">

      <Version>2.4.1</Version>

      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

      <PrivateAssets>all</PrivateAssets>

    </PackageReference>

Any help would be appreciated.

Apr 11, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,147 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
The problem appears to be, If You have the UWP project for Windows version 1803, and reference it from the test project in this version it ignores all tests in the test project. To solve this just update the test project to 1903 and it works fine.
answered Apr 13, 2022 by narikkadan
• 63,600 points

edited 4 days ago

Related Questions In Other DevOps Questions

0 votes
1 answer

Azure DevOps yaml passing variable using "##vso[task.setvariable" not working

You can stop the pipeline from running ...READ MORE

answered Feb 8, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,990 views
0 votes
0 answers
0 votes
0 answers

Azure DevOps profile pictures not displayed on boards

We recently switched to  Azure DevOps. I successfully connected ...READ MORE

Mar 21, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,702 views
0 votes
2 answers

Which is better azure devops or aws devops?

Azure DevOps, a part of Microsoft's cloud ...READ MORE

answered Jan 8, 2024 in Cloud Computing by anonymous
• 700 points
2,372 views
0 votes
1 answer
0 votes
1 answer

What is the Difference between VSO, VSTS and Azure Devops

Azure DevOps was previously known as VSO ...READ MORE

answered Mar 8, 2022 in Azure by Edureka
• 13,620 points

edited Jun 27, 2023 by Khan Sarfaraz 2,002 views
0 votes
1 answer

How can I preview PowerPoint files in Azure DevOps (VSTS)?

For work item attachments, there are no ...READ MORE

answered Mar 8, 2022 in DevOps & Agile by gaurav
• 23,260 points
1,676 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP