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 in Other DevOps Questions by Kichu
• 17,220 points
46 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.

Related Questions In Other DevOps Questions

0 votes
1 answer
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 in Other DevOps Questions by Kichu
• 17,220 points
80 views
0 votes
1 answer

Which is better azure devops or aws devops?

Hi, It depends according to your use case. ...READ MORE

answered Sep 21, 2020 in Cloud Computing by MD
• 95,340 points
1,188 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP