diff options
author | Sean Dague | 2008-09-08 21:22:40 +0000 |
---|---|---|
committer | Sean Dague | 2008-09-08 21:22:40 +0000 |
commit | a8123310890f5e85af8aca57feb39c52ab5f5d4d (patch) | |
tree | 3c1dd0a60ee1735ab3019d2a043518b1bc5cf2ec /TESTING.txt | |
parent | rejigger tests out of OpenSim.Region.Environment and into OpenSim.Region.Envi... (diff) | |
download | opensim-SC-a8123310890f5e85af8aca57feb39c52ab5f5d4d.zip opensim-SC-a8123310890f5e85af8aca57feb39c52ab5f5d4d.tar.gz opensim-SC-a8123310890f5e85af8aca57feb39c52ab5f5d4d.tar.bz2 opensim-SC-a8123310890f5e85af8aca57feb39c52ab5f5d4d.tar.xz |
add a new quickstart to testing document
Diffstat (limited to 'TESTING.txt')
-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 |