27 |
28 |
Getting Started with NUnit
29 |
30 |
If you haven't already done so, go to our Download page, select a version of NUnit and download it. The
31 | Installation page
32 | contains instructions for installing on your system.
33 |
34 |
To get started using NUnit, read the Quick Start page. This article demonstrates the development process with NUnit in the
35 | context of a C# banking application. Check the
36 | Samples page for additional examples,
37 | including some in VB.Net, J# and managed C++.
38 |
39 |
Which Test Runner to use?
40 |
41 |
NUnit has two different ways to run your tests. The
42 | console runner, nunit-console.exe,
43 | is the fastest to launch, but is not interactive.
44 | The gui runner,
45 | nunit.exe, is a Windows Forms application that allows you to work
46 | selectively with your tests and provides graphical feedback.
47 |
48 |
49 |
50 |
51 |
27 |
28 |
From NUnit 2.x
29 |
30 |
In general, there are two approaches to running tests built against earlier
31 | versions of the NUnit framework from 2.0 through 2.5.10:
32 |
33 |
34 | - Run the tests without recompilation. This is the best approach when no
35 | further changes are to be made to a project. Ensure that the framework
36 | assembly against which the tests were built continues to be avaialble
37 | in the test directory.
38 |
- Recompile the tests referencing the latest version of the framework assembly.
39 | This is usually the best option when a project is still under development.
40 |
41 |
42 |
Note:
43 | NUnit 2.6 no longer recognizes "old style" test cases - those
44 | identified by a name beginning with "Test". If you have such tests, you will
45 | need to convert them to use the TestAttribute and recompile your tests. In such cases, it makes sense to recompile against
46 | the latest framework.
47 |
48 |
From NUnit 1.x
49 |
50 |
Tests originally compiled against a version of NUnit prior to 2.0 will need
51 | to be rewritten and recompiled in order to run under NUnit 2.6.
52 |
53 |
54 |
55 |
56 |
57 |
27 |
28 |
License - NUnit Test Adapter for Visual Studio
29 |
30 |
Copyright © 2012-2014 Charlie Poole
31 |
32 |
Permission is hereby granted, free of charge, to any person obtaining
33 | a copy of this software and associated documentation files (the
34 | "Software"), to deal in the Software without restriction, including
35 | without limitation the rights to use, copy, modify, merge, publish,
36 | distribute, sublicense, and/or sell copies of the Software, and to
37 | permit persons to whom the Software is furnished to do so, subject to
38 | the following conditions:
39 |
40 |
The above copyright notice and this permission notice shall be
41 | included in all copies or substantial portions of the Software.
42 |
43 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
44 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
45 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
46 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
47 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
48 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
49 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50 |
51 |
Notice
52 |
53 |
NUnit 2.6 assemblies distributed with this adapter are subject to the
54 | NUnit license.
55 |
56 |
57 |
58 |
59 |
60 |