unit testing - How much faster is NUnit compared to MSTest -


The author of the author of the unit test , Roy Oservo, is on a blog that things from many people Anonute is believed that it is better, it is one of them fast too much .

How fast is my question, if at all? Are we talking about an order of magnitude? 10%? 50%?

I am asking this because I can not compare the two at the moment I am trying to set up my test project so that I can switch between them. Unfortunately, I have a problem with NUnit with the latest version of Microsoft Moles, and so on.

So far MSTest seems so easy to use in Visual Studio 2008. With all version issues and compatibility problems, NUnit (at least for me) is steering me to choose MSTest as project structure (though I can have dual mode options). Another plus for MSTE is that I can still use most NUITs:

  Assert = NUnit.Framework.Assert; Usage = NUnit.Framework.Is;  

But .... if the speed is actually very fast in the NUINT, then I like to use it despite the pain point.

Finally, is there any speed improvement in VS-2010 for MST

OK, I took the time to remove Microsoft Moles and the production code which was dealt with issues related to log4net so that I could actually compare both. Then I started the trial in both MSTEst 2008 and Eynit 2.5.2.

I came to know that MSTE tells the period of testing of each person better. If the test is fast enough in the NUnit, then it is logged in the TestResults.xml file and on one click on the properties of the test as a 0 seconds in the GUI. However, I tried to compare the sum of all the test speeds, and in some cases, NUINit is fast and in other cases MSTE is fast when it is up to 30% faster than each other.

Now, where NUnit definitely feels faster, it is time to wait before running the unit test. When I VS Combine the GUI (or console) to the debugger, and run the test project, it takes about 3-6 seconds for the load to load before testing and execution of the NUINT. It takes 15-20 seconds with MSTE. It does not matter to MSTE that it is only 1 Test or 26, then this load seems the same. As the waiting time in the form of a test project grows bigger, thousands of unit tests say, I can not comment on the difference, although I would be very interested to know.

There is a slight delay in MSTE, while the exam is underway, perhaps to update the result panel In this way, I suspect when people say that NUINET is faster than MSTEst it is due to loading and updating, but actual test execution time seems very similar.


Comments