testing 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. * Testing
  2. Testing is an important part of the Mono project: every one of its
  3. three major components has a test suite tailored for its needs. This
  4. is very helpful, because in the course of developing the software it
  5. is very common to introduce bugs in existing code. A test suite
  6. helps us fix the bugs as soon as they are introduced.
  7. ** Class Library Tests
  8. All classes in Mono libraries should have comprehensive unit test
  9. suites to go with them. Unit testing is a software engineering
  10. methodology that makes it easier to build correct code. Every
  11. method in every class should have a set of tests to verify
  12. that they work correctly. Mono also needs a testing framework
  13. to make it easy to write and run lots of tests.
  14. Try <a href="http://nunit.sourceforge.net">NUnit</a>
  15. Why do unit testing? It becomes simple to run automated tests
  16. for the whole library. Unit tests are a safety net - you can
  17. change part of the code and verify that you haven't broken
  18. anything. Ideally, tests are written before the actual library
  19. code itself. And every time a bug is discovered, a test should
  20. be written to demonstrate the bug and its fix. Then, if
  21. you ever reintroduce the bug, you will know immediately. For
  22. more info, read <a
  23. href="http://junit.sourceforge.net/doc/testinfected/testing.htm">
  24. JUnit Test Infected: Programmers Love Writing Tests</a>.
  25. ** Getting Started
  26. We welcome all contributions to the Class Libary Test Suite.
  27. There is information to help you get started in CVS at
  28. mcs/class/doc/NUnitGuidelines. Once you have written your test, please
  29. post it to <a href="mailing-lists.html">mono-list</a>.
  30. Someone will make sure to add the file or apply the patch as
  31. appropriate. If you plan to be an on-going contributor and
  32. would like to get cvs account, email <a href="mailto:[email protected]">miguel</a>.
  33. Normally, after you send a couple of well-written new files
  34. and/or patches to the list, you will be given cvs access.