diff options
-rw-r--r-- | TESTING.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/TESTING.txt b/TESTING.txt index 97bffe2..2dd2595 100644 --- a/TESTING.txt +++ b/TESTING.txt | |||
@@ -1,3 +1,47 @@ | |||
1 | === The Quick Guide to OpenSim Unit Testing === | ||
2 | |||
3 | == Running Tests == | ||
4 | |||
5 | On Linux: | ||
6 | |||
7 | > nant test | ||
8 | |||
9 | This will print out to the console the test state. | ||
10 | |||
11 | On Windows: ?? | ||
12 | |||
13 | |||
14 | |||
15 | Also, every checkin will run tests that are kicked off by bamboo. | ||
16 | Results are posted here: http://www.opensimulator.org:8085/ as well as | ||
17 | to #opensim-dev IRC channel. | ||
18 | |||
19 | == Writing Tests == | ||
20 | |||
21 | Tests are written to run under NUnit. For more information on NUnit | ||
22 | please see: http://www.nunit.org/index.php | ||
23 | |||
24 | == Adding Tests == | ||
25 | |||
26 | Tests should not be added to production assemblies. They should | ||
27 | instead be added to assemblies of the name | ||
28 | My.Production.Assembly.Tests.dll. This lets them easily be removed | ||
29 | from production environments that don't want the bloat. | ||
30 | |||
31 | Tests should be as close to the code as possible. It is recommended | ||
32 | that if you are writing tests they end up in a "Tests" sub-directory | ||
33 | of the directory where the code you are testing resides. | ||
34 | |||
35 | If you have added a new test assembly that hasn't existed before you | ||
36 | must list it in both ".nant/local.include" and ".nant/bamboo.build" | ||
37 | for it to be accessible to Linux users and to the continuous | ||
38 | integration system. | ||
39 | |||
40 | |||
41 | === The Gory Details === | ||
42 | The following is the original document which started off this | ||
43 | document. It should probably be better integrated with the new info. | ||
44 | |||
1 | ==UPDATE== | 45 | ==UPDATE== |
2 | 46 | ||
3 | The text immediately following is an update to the testing documentation. The | 47 | The text immediately following is an update to the testing documentation. The |