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
Projects are not unit tested because of a System.IO.FileNotFoundException error while trying to find the tests in a test project.
Worse, these errors don't fail the test task. I have multiple test projects that aren't even running their tests.
If tests for a project fail to run due to an error, the task should NOT be marked as successful.
Task logs
Example1:
No test matches the given testcase filter `TestCategory=Unit&TestCategory!=ToBeFixed&TestCategory!=DataDriven` in C:\BuildAgent\_work\1\s\src\Clients\Clients2.Common.Tests\bin\Debug\netcoreapp3.1\cs\Microsoft.TestPlatform.CrossPlatEngine.resources.dll
[MSTest][Discovery][C:\BuildAgent\_work\1\s\src\Clients\Clients2.Common.Tests\bin\Debug\netcoreapp3.1\Rhyous.WebFramework.Clients2.Common.Tests.dll] Unable to load types from the test source 'C:\BuildAgent\_work\1\s\src\Clients\Clients2.Common.Tests\bin\Debug\netcoreapp3.1\Rhyous.WebFramework.Clients2.Common.Tests.dll'. Some or all of the tests in this source may not be discovered.
Error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Example2:
No test matches the given testcase filter `TestCategory=Unit&TestCategory!=ToBeFixed&TestCategory!=DataDriven` in C:\BuildAgent\_work\1\s\src\WebServices\Webservices.Wcf.Tests\bin\Debug\net48\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll
No test matches the given testcase filter `TestCategory=Unit&TestCategory!=ToBeFixed&TestCategory!=DataDriven` in C:\BuildAgent\_work\1\s\src\WebServices\Webservices.Wcf.Tests\bin\Debug\net48\Microsoft.TestPlatform.AdapterUtilities.dll
2.2271
[MSTest][Discovery][C:\BuildAgent\_work\1\s\src\WebServices\Webservices.Wcf.Tests\bin\Debug\net48\Ivanti.Tools.UnitTestFramework.dll] Unable to load types from the test source 'C:\BuildAgent\_work\1\s\src\WebServices\Webservices.Wcf.Tests\bin\Debug\net48\Ivanti.Tools.UnitTestFramework.dll'. Some or all of the tests in this source may not be discovered.
Error: System.IO.FileNotFoundException: Could not load file or assembly 'Autofac, Version=4.9.4.0, Culture=neutral, PublicKeyToken=17863af14b0044da' or one of its dependencies. The system cannot find the file specified.
Troubleshooting
n/a
Error logs
n/a
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Question, Bug, or Feature?
Bug
Enter Task Name: VSTest@2
Environment
Azure Pipelines
Private
Issue Description
Projects are not unit tested because of a System.IO.FileNotFoundException error while trying to find the tests in a test project.
Worse, these errors don't fail the test task. I have multiple test projects that aren't even running their tests.
If tests for a project fail to run due to an error, the task should NOT be marked as successful.
Task logs
Example1:
Example2:
Troubleshooting
n/a
Error logs
n/a
The text was updated successfully, but these errors were encountered: