Visual Studio Test Explorer Error Logs

I am trying to fix a problem that I encountered with Test Explorer not showing tests when I am in a different configuration. I am making changes to the local environment by updating my app.config.

I have already tried several steps found here and on other sites, including cleaning my project, updating to the latest xUnit test runner, etc.

I am sure that the reason is based on the code / project, and not the Visual Studio environment itself. I would like to know if there is a log file that I can look at, which will help me determine why my tests are not being displayed. Or is there another good method to troubleshoot errors with tests that don't appear in Test Explorer?

+2
source share
1 answer

MSDN blog post about this .

Essentially, you need to:

  • Go to the% VSInstallDir% \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TestWindow folder
  • Find the configuration file for the process you want to debug (for example, vstest.console.exe.config, vstest.discoveryengine.exe.config, etc.)
  • Modify the system.diagnostics node configuration file to include:

    <system.diagnostics> 
        <switches> 
            <add name="TpTraceLevel" value="4" /> 
        </switches> 
    </system.diagnostics>
    
  • Close VisualStudio, open it again and open / run tests from the TestExplorer window.
  • Look for the logs in% temp% [process name] .TpTrace.log (for example, vstest.console.tptrace.log)
+2
source

All Articles