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
When my org started containerising our code, we discovered our test projects weren't being discovered by dotnet test <solution> (where <solution> refers to a sln(x) containing at least one test project referencing Microsoft.Net.Test.Sdk) when tests were executed in Docker builds. Subsequent investigation revealed this is because projects referencing that package, implicitly get IsTestProject=true set via a .props file shipped with it - and in our Dockerfile's test run layer we'd omitted copying the NuGet packages, which meant that file didn't exist. (sad trombone noise)
We're now considering a move to MTP. Given that it doesn't appear to require Microsoft.Net.Test.Sdk so presumably doesn't care about the presence or absence of IsTestProject, we'd thus like to understand how dotnet test <solution> discovers MTP projects - so that we can ensure our Dockerfiles don't do anything that would prevent this discovery from working as we expect.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When my org started containerising our code, we discovered our test projects weren't being discovered by
dotnet test <solution>(where<solution>refers to a sln(x) containing at least one test project referencingMicrosoft.Net.Test.Sdk) when tests were executed in Docker builds. Subsequent investigation revealed this is because projects referencing that package, implicitly getIsTestProject=trueset via a .props file shipped with it - and in our Dockerfile's test run layer we'd omitted copying the NuGet packages, which meant that file didn't exist. (sad trombone noise)We're now considering a move to MTP. Given that it doesn't appear to require
Microsoft.Net.Test.Sdkso presumably doesn't care about the presence or absence ofIsTestProject, we'd thus like to understand howdotnet test <solution>discovers MTP projects - so that we can ensure our Dockerfiles don't do anything that would prevent this discovery from working as we expect.Beta Was this translation helpful? Give feedback.
All reactions