Visual Studio 2017 Enterprise xUnit doesn't show CodeLens for tests

I have VS2017 Enterprise, I am developing .NET Core apps and using xUnit for testing. But I don't see CodeLens for any of my tests. I checked the CodeLens settings, everything is included. Is this a known issue or am I missing something?

+3


source to share


2 answers


This seems to be a bug:

If you create a new file and write some tests, CodeLens will show up for the methods used in those tests. If you close Visual Studio and close it again, CodeLens will stop working.



I couldn't find a workaround.

+1


source


This is a known bug that you can see in the xunit.net GitHub Issue List .



It was fixed in release 2.3 , which is currently in beta. What I did was check the " enable prepayment " checkbox in the Visual Studio 2017 package manager GUI. Then I went to the updates tab in that dialog and installed the newest version (currently 2.3.0-beta4-build3742). After that, CodeLens support started working again

0


source







All Articles