title: Should tests run in Debug or Release configuration in dotnet core
body: <p>I am using dotnet core 2+, but the question is likely much more generic.</p>
  
  <p>My CI pipeline currently looks like this:</p>
  
  <ul>
  <li><code>dotnet build -c Release</code></li>
  <li><code>dotnet test</code></li>
  <li><code>dotnet public -c Release --no-build</code></li>
  </ul>
  
  <p>For the test step, it uses the default <code>Debug</code> configuration, therefore it also has to build the app using <code>Debug</code> config. </p>
  
  <p>Therefore, I was wondering, whether there is any advantage in running tests using <code>Debug</code> rather than <code>Release</code> or should i just simply add <code>dotnet test -c Release</code>?</p>