NUnit 2.5.6 + PartCover 2.0 / 4.0 = My classes are not shown

Summary: I can run unit tests and code coverage, but there are only NUnit classes in the report, not application classes.

I have successfully used PartCover in the past. Not so this time. I tried the latest version of PartCover (4.0), downgraded to the next version (2.0), as with NUnit 2.5.6.

I created a simple .NET 4.0 class library (also tried this with a web application that has a project that is a class library) with one class in some namespace, and two testing methods in another library in another class.

NUnit / PartCover installed correctly; I can run NUnit tests both in NUnit and through PartCover (I see that they work and say "2 passed"), but only NUnit namespaces are displayed in the report. (Yes, I use + [] as a rule for coverage.)

Any ideas? As much as I like NUnit, I would like to see coverage for my classes: o)

And I also tried to align the test-DLL and code-DLL namespaces, but to no avail.

Edit: I tried to repeat the previous working code, processed earlier, a year ago; all tests run, but the actual project namespaces are not displayed. There is a hint here, which apparently implies that it depends on the version of NUnit you are using: http://sourceforge.net/projects/partcover/forums/forum/605222/topic/3308367 (and yes, I already tried appdomain -reporting)

I tried NUnit 2.5.5.x and 2.5.6.x and both give me the same results.

Edit: This version of the official version 4.0 seems to work, albeit sporadically (google for forController, I can't add more hyperlinks)

+3
source share
2

. -, Pause/Break , NUnit / , "CoreProfiler " .

, . , , ~ 1 NUnit, .

+1

- nunit. , NUnit CLR 2.0 4.0. SO, . . : . , .

+1

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


All Articles