diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-07-04 03:51:07 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-07-04 03:51:07 +0400 |
commit | b9b369acf39681865ecafb471a2e9d3066d95644 (patch) | |
tree | 7402e2e25244c39e63ba9f20ea6138030c34fd6e /doc/testing | |
parent | 204210f834d8085721739771190f50e810cbc63e (diff) |
More documentation
svn path=/trunk/mono/; revision=50
Diffstat (limited to 'doc/testing')
-rw-r--r-- | doc/testing | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/testing b/doc/testing new file mode 100644 index 00000000000..424d6387cd6 --- /dev/null +++ b/doc/testing @@ -0,0 +1,24 @@ +* Testing + + All classes in Mono libraries should have comprehensive unit test + suites to go with them. Unit testing is a software engineering + methodology that makes it easier to build correct code. Every + method in every class should have a set of tests to verify + they work correctly. Mono also needs a testing framework to + make it easy to write and run lots of tests. <a + href="http://www.junit.org/">JUnit</a> + and its spinoffs (collectively, <a + href="http://www.xprogramming.com/software.htm">XUnit</a>) + are a well designed framework for building unit + tests. Implementing JUnit in Mono is a first priority. + + Why do unit testing? It becomes simple to run automated tests + for the whole library. Unit tests are a safety net - you can + change part of the code and verify that you haven't broken + anything. Ideally, tests are written before the actual library + code itself. And every time a bug is discovered, a test should + be written to demonstrate the bug, fix the bug, and then if + you ever reintroduce the bug you will know immediately. For + more info, read <a + href="http://junit.sourceforge.net/doc/testinfected/testing.htm"> + JUnit Test Infected: Programmers Love Writing Tests</a>. |