UPdate web page
[mono.git] / web / testing
1 * Testing 
2
3         All classes in Mono libraries should have comprehensive unit test
4         suites to go with them. Unit testing is a software engineering
5         methodology that makes it easier to build correct code. Every
6         method in every class should have a set of tests to verify
7         that they work correctly. Mono also needs a testing framework
8         to make it easy to write and run lots of tests. 
9
10         Try <a href="http://nunit.sourceforge.net">NUnit</a>
11
12         Why do unit testing? It becomes simple to run automated tests
13         for the whole library. Unit tests are a safety net - you can
14         change part of the code and verify that you haven't broken
15         anything. Ideally, tests are written before the actual library
16         code itself. And every time a bug is discovered, a test should
17         be written to demonstrate the bug and its fix. Then, if
18         you ever reintroduce the bug, you will know immediately. For
19         more info, read <a
20         href="http://nunit.sourceforge.net/doc/testinfected/testing.html">
21         JUnit Test Infected: Programmers Love Writing Tests</a>.