Using NUnit with Visual C # Express 2010 and .net 4

I've been looking around and on the Internet for quite some time, and I'm struggling to find any information on how to set up my C # project for unit tests.

I started from the main NUnit website http://www.nunit.org , the download includes a graphical interface to run your unit tests, mint sounds. Only when I try to point the GUI to my .exe, I immediately receive a message that NUnit is not designed to work with this infrastructure. It made me think that maybe NUnit is not working with .net 4. Apparently this is so, a lot of people on the Internet seem to say that they run NUnit unit tests with .net 4 .... of course, they don't seem keep telling how.

By clicking on google, I found that apparently one of the main members of NUnit development is a dude called Charlie Poole. I found that he had a launch pad: https://launchpad.net/nunit-xtp . Version numbers are newer than on the NUnit main site. However, when I downloaded the project, it is just a code base and a solution for the NUnit framework without a GUI. There is a command line runner, but I really need something visual.

We have a jetbrains teamcity as a BMS, so I'm on my way now, maybe try to integrate NUnit into the assembly pipeline somehow. If anyone can shed some light on how they got NUnit working with the express release of C #, which will be wonderfully useful.

Edit: I now have BMS teamcity running, so this part is no longer a problem. However, waiting for the assembly every time to find a NullException error, or something doesn't actually cut it. I have to get the GUI runner to work. I found this question. NUnit does not run Visual Studio 2010 code , but even this does not fix it for me. The error is now updated to version v4.0.30319, so the configuration changes took effect. However, the same old error :(

+5
source share
3 answers

I expressed it correctly. here is a very similar question: NUnit does not run Visual Studio 2010 code

, , , NUnit . , nunit.exe.config. , . , nunit gui runner .config. .

, .exe. "nunit.exe", . "nunit-x86.exe", 32 , . "nunit.exe" "nunit64.exe", , .

, , CLR , . , CLR. , CLR ? Microsoft Visual # 2010 Express, CLR - v4.0.30319

+3

( ). NUnit , . ( ).

0

NUnit GUI- "nunit.exe". , , GUI .

0

All Articles