Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper Unit Test Runner significantly slower than NUnit console

Resharper Unit Test Runner runs significantly slower than nunit-console or nunit gui.

For example, 3800 tests take just over 60 seconds via nunit-console, but those same tests take over 5 minutes to run in Resharper Unit Test runner. Why such a significant difference?

Since our test code base has grown significantly, this is really starting to slow us down. Has anyone else experienced similar problems? How have you dealt with it?

The Resharper Visual Studio integration is really nice, however we might need to resort to something else.

like image 843
jamesaharvey Avatar asked Sep 15 '09 21:09

jamesaharvey


2 Answers

I don't think the goal of Resharper was to provide a utility to execute an entire test suite from within Visual Studio. That is usually the goal of a build server or test suite server running continuous integration tools (like NUnit launched from CruiseControl)

The Resharper unit test runner appears best leveraged by running small sets of unit tests to diagnose and satisfy a particular unit of code. It allows you to create focused test suites that can be conveniently run from within the studio, debugged, repeated, and analyzed quickly without waiting for builds.

I would recommend leveraging a build server for running the complete suite of tests.

like image 111
Stuart Thompson Avatar answered Oct 14 '22 09:10

Stuart Thompson


I had the same issue and I switched to TestDriven.Net, it's lightning fast.

like image 40
Mauricio Scheffer Avatar answered Oct 14 '22 09:10

Mauricio Scheffer