Visual Studio + NUnit unit test integration



  • I am having a problem with integration my NUnit test integration. I have installed the test adapter for NUnit and also made sure that the extension is enabled, but no test are shown in the test explorer still. I have already tried to add everything named NUnit from the package manager to my projects, but still no results in the test explorer. My tests work fine with the outern NUnit program, but just won't integrate to Visual Studio 2012. Any ideas how to solve this? Maybe there is a more detailed documentation how to set up this than the one on the NUnit adapter's site?



  • Are you using Visual Studio Express? If so, perhaps the workaround described in this SO thread will work for you: https://stackoverflow.com/questions/13348613/nunit-runners-via-nuget-on-visual-studio-2012-express-doesnt-work Edit: The selected answer, which reveals the limitation of Visual Studio Express + Nunit As I've found out Visual Studio Express does not support project extensions (forbidden and disabled by Microsoft) A subsequent answer to the same question describes how to implement (instructions and code) a workaround via adding and configuring the nunit-console-runner in your test assembly.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2