Tuesday, July 17, 2012

Unit Testing Tools for Microsoft Dot NET



dot net programmers must choose from a multitude of test box before placing the tedious task of individually checking each unit for proper code rad.Popis all possible tools is too massive to be here, but this article focuses on providing the programmer with a typical open -source tools needed to build an extraordinary request. No tool will ever meet all the needs of users.

NUnit provides a standard against which all others are usually judged. This popular open source framework gives users the power to the preparation of tests in different programming languages ​​in order to test a specific function within the application. It includes a graphical interface to the relative ease of use and provides class libraries to help with the writing test. xUnit is the creator of NUnit attempt to simplify and create a new test framework. xUnit different from NUnit in several different ways, such as the ability to invoke the extension method of testing and test grades.

FxCop analyzes to verify compliance with the Microsoft.NET Framework Design Guidelines. His methods include reflection, analysis callgraph and Microsoft Intermediate Language (MSIL) code parsing test assembly. He will review the library design, safety, performance, naming conventions and location of defects. Although FxCop includes rules created by Microsoft, it is possible that the user to create their own rules, and then check all the rallies against the rules.

NDoc as a tool to automatically generate a class library documentation in various formats such as MSDN-style HTML Help format (. Chm) and Visual Studio.NET Help format. NDoc uses two methods for documentation. The first products installation file after compiling the source code, while others analyze the XML files for text documents.

testers want to simplify their interface should be taken into account Driven.NET test, a simple tool that integrates with NUnit and Visual Studio, and others allow the user to activate the test with a right click of the mouse. These tests can be in any namespace method, project, solution, source files or class, and Test Driven.NET NET supports all major languages​​, including C #, J #, VB and C + +.

Developers using C # only need to consider Jetbrains Resharper, a set of tools that provides intelligent coding, debugging and rapid current error highlighting and other features. Resharper also offers full integration with Microsoft Visual Studio.NET, giving users instant access to all Resharper power.

Jetbrains dotTrace Profiler provides an easy way for developers to identify coding problems by emphasizing the ability of memory bottlenecks in. NET applications. Keep in mind that this tool does not actually fix the code, it simply places the slowest parts of the application, thus indicating the tester to encode the necessary optimization

.

These options do not function as an exhaustive list, but they will provide NET developers with the foundation on which to build further research unit testing tool. Testers are encouraged to delve in. NET community for additional information.

No comments:

Post a Comment