Unit Testing (using ReSharper 3.1)
来源:互联网 发布:icq聊天软件 编辑:程序博客网 时间:2024/06/04 19:37
Unit Testing
All unit testing features are available in all ReSharper 3.0 editions.
Running and debugging tests
ReSharper automatically detects unit tests of NUnit test framework in your projects. Next to declarations of test classes and single tests, ReSharper adds special icons on the left gutter of the editor window. Click these icons to run or debug tests.
Tests can also be run from the context menu. In addition, an arbitrary set of unit tests can be run or debugged from the Visual Studio's Solution Explorer. Just right-click the project or solution and select Run unit tests or Debug unit tests.
to the top
Unit Test Explorer
ReSharper presents Unit Test Explorer - a structured list of unit tests for reviewing the structure of tests in your whole solution. The tree is available via the ReSharper -> Window menu and is quickly populated after you build your project. Using Unit Test Explorer, you can run any combination of tests in one or more unit test sessions.
to the top
Unit Test Sessions
ReSharper runs unit tests in the Unit Test Sessions window. It is designed to help you run any number of unit test sessions, independently of each other, as well as simultaneously. Sessions can be composed of any combination of tests. In the debugging mode, only one session can be run at a time.
The unit test tree shows the structure of tests belonging to a sessions, which you can filter to show only passed, failed or ignored unit tests. You can navigate to the code of any unit test by double-clicking it.
The progress bar and the status bar display the current progress. You can stop, run or re-build and re-run unit tests at any time.
The preview pane lets you analyze test results and navigate from a failed test's output to the code lines that originated the exception, all with a single click.
to the top
Profiling unit tests with dotTrace Profiler
You can also quickly profile the performance of unit tests from Visual Studio via JetBrains dotTrace Profiler, a powerful and easy-to-use .NET profiling tool.
To profile tests, you will need to install dotTrace Profiler (see details at http://www.jetbrains.com/profiler). You will then be able to start profiling directly from the editor using the sidebar marks that ReSharper adds for test classes and individual tests.
- Unit Testing (using ReSharper 3.1)
- Unit Testing
- unit testing
- Unit Testing
- Unit testing
- Unit Testing
- ReSharper UnitRun (feed add-in unit-test software)
- iOS单元测试入门(Unit Testing)
- unit testing private methods
- Advanced Unit Testing
- unit testing in gamedev
- Unit testing with CPPUnit
- SQL Unit Testing
- 理解单元测试(Unit Testing)
- Unit Testing in Android
- 单元测试(Unit Testing)基础
- Unit Testing in JUnit
- Unit Testing with wxPython
- fast report 的使用说明
- Visual Studio 2008之新特性LINQ(三)之LINQ To Object查询
- iReport 笔记(一) 序
- 网站变黑(哀悼!!!!)
- 一位软件工程师的6年总结
- Unit Testing (using ReSharper 3.1)
- (转)form和column:extJS的布局
- sql问题小结
- iReport 笔记(二) iReport 的设计界面
- php函数
- evc 获得程序运行所在的目录
- If the job does not exist, an error from msdb.dbo.sp_delete_job is expected
- Ajax/Json乱码处理
- 一个不使用导入表的程序