Visual Studio 2013 - NUnit Lens

There is a new new feature in the new Visual Studio 2013 called the Code Object (I think this is only in the Ultimate version). As for the methods, in addition to showing links (how many and where), it also shows some information about version control when working in a team and checks the statistics so that you know how many tests the method uses and how many failures.

I suppose this works fine with test projects built into Visual Studio, but does it work with NUnit? We use NUnit for unit testing, and we are trying to decide whether to upgrade to VS2013, and one of the reasons would be this new feature, which we would like to use fully if it supports NUnit.

Do you have any experience?

+6
source share
2 answers

Proven status indicators for testing and testing are powered by the test conductor.

So, if your NUnit tests appear in the test explorer, they should also appear in CodeLens.

+6
source

I don't have enough reputation points to add John Gardner as a comment, so I'm adding a new answer.

I added an answer to a similar question here - CodeLens only finds tests written in MSTests

A summary of this answer is that you need to create a new Unit Test project and add a link to NUnit for this new Unit Test project. So I got it to work with VS2013 and NUnit (along with the NUnit Provider), so now the tests are displayed in the VS2013 Test Explorer and in CodeLens.

+2
source

Source: https://habr.com/ru/post/957183/


All Articles