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
This probably concerns Azure DevOps pipeline but only for Core 3.x since I have been successfully using the documentation config for Core 2.x solution.
The problem is with test task configuration for xunit to run tests in the pipeline.
The basic stuff is:
If I do that, it recognizes way to many projects as test projects and fails e.g.:
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.CommunicationUtilities.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.CoreUtilities.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.CrossPlatEngine.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.PlatformAbstractions.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.Utilities.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\cs\Microsoft.TestPlatform.CommunicationUtilities.resources.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\cs\Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
D:\a\1\s\UnitsTests\bin\Release\netcoreapp3.1\Microsoft.AspNetCore.Mvc.Testing.dll
and so on, there is plenty like these and obviously every one of them ends with:
Test Run Aborted.
##[error]Error: The process 'C:\Program Files\dotnet\dotnet.exe' failed with exit code 1
just putting all your test projects within tests folder then the problem cease to exist.
Am I missing something here? Is that a bug you are not aware of or is it how it's supposed to work for Core 3.x? The very same configuration works fine for Core 2.x, as mentioned before. Obviously the xUnit dlls are recognized just fine and all the tests pass but all the other dlls that shouldn't be recognized as tests fail hence the whole task fails.
The text was updated successfully, but these errors were encountered:
This probably concerns Azure DevOps pipeline but only for Core 3.x since I have been successfully using the documentation config for Core 2.x solution.
The problem is with test task configuration for xunit to run tests in the pipeline.
The basic stuff is:
The documentation says to configure it like that:
If I do that, it recognizes way to many projects as test projects and fails e.g.:
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.CommunicationUtilities.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.CoreUtilities.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.CrossPlatEngine.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.PlatformAbstractions.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\Microsoft.TestPlatform.Utilities.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\cs\Microsoft.TestPlatform.CommunicationUtilities.resources.dll
D:\a\1\s\IntegrationTests\bin\Release\netcoreapp3.1\cs\Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
D:\a\1\s\UnitsTests\bin\Release\netcoreapp3.1\Microsoft.AspNetCore.Mvc.Testing.dll
and so on, there is plenty like these and obviously every one of them ends with:
The workaround is config like this:
just putting all your test projects within tests folder then the problem cease to exist.
Am I missing something here? Is that a bug you are not aware of or is it how it's supposed to work for Core 3.x? The very same configuration works fine for Core 2.x, as mentioned before. Obviously the xUnit dlls are recognized just fine and all the tests pass but all the other dlls that shouldn't be recognized as tests fail hence the whole task fails.
The text was updated successfully, but these errors were encountered: