No result status in codelens
See original GitHub issueI try to show test result in codelens but nothing appear: All my test pass:
<ResultSummary outcome="Completed">
<Counters total="16" executed="16" passed="16" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
<Output>
<StdOut>[xUnit.net 00:00:00.7930766] Discovering: SecurityTest[xUnit.net 00:00:00.9045070] Discovered: SecurityTest[xUnit.net 00:00:00.9093974] Starting: SecurityTest[xUnit.net 00:00:02.4098335] Finished: SecurityTest</StdOut>
</Output>
</ResultSummary>
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
CodeLens doesn't show unit test results
A fix for this issue has been released in 16.2! As long as test explorer window is open, you should see code lens...
Read more >CodeLens not showing references - visual studio
Go into Tools -> Options... -> Text Editor -> All Languages -> CodeLens. Uncheck "Enable CodeLens" option and click OK. Go back into...
Read more >CodeLens test status not displayed. · Issue #33 - GitHub
./src/CalcService.Test/CalculatorShouldAddCorrectly.cs does not show the test status. dotnet test gives the expected results in the console. $ ...
Read more >Find code changes and other history with CodeLens
Choose the references indicator or press Alt+2. CodeLens references. Note · To view the referencing code, mouse over the reference in the list....
Read more >D91930 [clangd] Implement textDocument/codeLens - LLVM
Contextual: codelens is displayed as a decoration and contains information of nearby code, e.g. show how many usages of a function without ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also had problem with displaying the test result in codelens. In my specific case this was because of a company group policy (love enterprise IT!) that prevents applications from accessing the os temp folder.
I’m not sure if this is a common thing but maybe it could be worth adding a setting for another directory to store the test results in? Something that uses the temp folder as a default but uses the setting folder if one is entered.
I’m having the same problem as listed here. I have tried changing the pathForResultFile, but that hasn’t helped. I have disabled all extensions except for .NET Test Explorer and C#. That hasn’t helped. I have tried to find the .trx file, but it doesn’t look like it is being produced. My console output looks like this:
Executing dotnet build in /Users/bmccord2/Projects/cobwow-api/WOWApi.Tests Executing dotnet test --no-build --logger “trx;LogFileName=/Users/bmccord2/Projects/cobwow-api/TestResults/test-explorer/0.trx” in /Users/bmccord2/Projects/cobwow-api/WOWApi.Tests Process 17815 started Test run for /Users/bmccord2/Projects/cobwow-api/WOWApi.Tests/bin/Debug/netcoreapp2.2/Optum.PaymentIntegrity.WOWApi.Tests.dll(.NETCoreApp,Version=v2.2) Microsoft ® Test Execution Command Line Tool Version 15.9.0 Copyright © Microsoft Corporation. All rights reserved.
Starting test execution, please wait… Results File: /Users/bmccord2/Projects/cobwow-api/TestResults/test-explorer/0.trx
Total tests: 257. Passed: 257. Failed: 0. Skipped: 0. Test Run Successful. Test execution time: 17.0079 Seconds
Process 17815 finished
When I go to /Users/bmccord2/Projects/cobwow-api/TestResults/test-explorerer, there is no file there. I’m on a Mac.
Any ideas?