title: 'dotnet test' is not finding nunit tests in gitlab-runner pipeline
body: <p>I have a solution with a <code>NUnit</code> testproject (<code>Foo.Test</code>).</p>
  
  <pre><code>+-- src
  |   +-- Foo.Gui
  |   +-- Foo.Test
  </code></pre>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp3.0&lt;/TargetFramework&gt;
  
      &lt;IsPackable&gt;false&lt;/IsPackable&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Compile Remove="TestResults\**" /&gt;
      &lt;EmbeddedResource Remove="TestResults\**" /&gt;
      &lt;None Remove="TestResults\**" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="GitVersionTask" Version="5.1.2"&gt;
        &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
        &lt;IncludeAssets&gt;runtime; build; native; contentfiles; analyzers; buildtransitive&lt;/IncludeAssets&gt;
      &lt;/PackageReference&gt;
      &lt;PackageReference Include="nunit" Version="3.12.0" /&gt;
      &lt;PackageReference Include="NUnit3TestAdapter" Version="3.15.1" /&gt;
      &lt;PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\Foo.Gui\Foo.Gui.csproj" /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  
  </code></pre>
  
  <p>The following call is used for testing:</p>
  
  <p><code>dotnet test --no-build -c Release -v n src\%TESTPROJECT%\%TESTPROJECT%.csproj --logger "trx;LogFileName=testreport.trx"</code></p>
  
  <p><strong>If I run it local, everything is working as expected:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/XS03L.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XS03L.png" alt="enter image description here"></a></p>
  
  <p><strong>The same call on build server is not finding any test:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/NObfG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NObfG.png" alt="enter image description here"></a></p>
  
  <h1>gitlab-ci.yml</h1>
  
  <pre><code>test:solution:
      stage: test
      script:
          - dotnet test --no-build -c Release -v n src\$env:TESTPROJECT\$env:TESTPROJECT.csproj --logger "trx;LogFileName=testreport.trx"
      after_script:
          - trx2junit src\$env:TESTPROJECT\Testresults\testreport.trx 
      artifacts:
          reports:
              junit: src\$env:TESTPROJECT\Testresults\testreport.xml
  
  </code></pre>
  
  <p>Someone got a hint what can be wrong? The Testproject (Foo.Test.dll) is available and present in the build artifacts.</p>