[#VS11] New Unit Testing in Visual Studio 11 adapters (NUnit, xUnit, and other superheroes more!)


image

Buenas,

one of the great innovations of Visual Studio 11 is the ability to work with multiple engines of definition and implementation of unit testing. If you have worked in migration to Team Foundation Server safe that you’ve found scenarios where there are large code bases that have unit testing with other engines that are not Microsoft MSTest.

The most common is NUnit, and in Team Foundation Server 2010 we could do a bit of magic using the Team Build Power Tools, but it was a bit craftsmanship.

Visual Studio 11 completely redesigned the way they work unit testing within the IDE, and in this way is easier to have support for engines such as xUnit, NUnit, etc.

If you want to have at hand some of these extensions, because you have to access the "shop online" extensions and from there select which suits our needs. For example, from the menu "Tools // Extension Manager", if we filters in Online Gallery by "Nunit" we will see something similar to the following:

image

Some interesting links are

 

 

Saludos @ La Finca

El Bruno

image image image

[#VS11] Nuevos adaptadores de Unit Testing en Visual Studio 11 (NUnit, xUnit, y otros superheroes mas!)


image

Buenas,

una de las grandes novedades de Visual Studio 11 es la capacidad de trabajar con varios motores de definición y ejecución de pruebas unitarias. Si has trabajado en migraciones a Team Foundation Server seguro que te has encontrado escenarios donde existen grandes bases de código que poseen pruebas unitarias con otros motores que no sean MSTest de Microsoft.

El más común es NUnit, y en Team Foundation Server 2010 podíamos hacer un poco de magia utilizando las Team Build Power Tools, pero era un trabajo un poco artesanal.

En Visual Studio 11 se rediseñó completamente la forma en que trabajan las pruebas unitarias dentro del IDE, y de esta forma es más fácil tener soporte para motores como xUnit, NUnit, etc.

Si lo que quieres es tener a mano alguna de estas extensiones, pues tienes que acceder a la “tienda online” de extensiones y a partir de allí seleccionar la que se adapte a nuestras necesidades. Por ejemplo, desde el menú “Tools // Extension Manager”, si filtramos en Online Gallery por “Nunit” veremos algo similar a lo siguiente:

image

Algunos enlaces interesantes son

Saludos @ Home

El Bruno

image image image