README 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. SimpleTest
  2. ==========
  3. You probably got this package from...
  4. http://simpletest.sourceforge.net/projects/simpletest/
  5. If there is no licence agreement with this package please download
  6. a version from the location above. You must read and accept that
  7. licence to use this software. The file is titled simply LICENSE.
  8. What is it? It's a framework for unit testing, web site testing and
  9. mock objects for PHP 4.2.0+ (and PHP 5.0 to 5.3 without E_STRICT).
  10. If you have used JUnit, you will find this PHP unit testing version very
  11. similar. Also included is a mock objects and server stubs generator.
  12. The stubs can have return values set for different arguments, can have
  13. sequences set also by arguments and can return items by reference.
  14. The mocks inherit all of this functionality and can also have
  15. expectations set, again in sequences and for different arguments.
  16. A web tester similar in concept to JWebUnit is also included. There is no
  17. JavaScript or tables support, but forms, authentication, cookies and
  18. frames are handled.
  19. You can see a release schedule at http://www.lastcraft.com/overview.php
  20. which is also copied to the documentation folder with this release.
  21. A full PHPDocumenter API documentation exists at
  22. http://simpletest.sourceforge.net/.
  23. The user interface is minimal
  24. in the extreme, but a lot of information flows from the test suite.
  25. After version 1.0 we will release a better web UI, but we are leaving XUL
  26. and GTk versions to volunteers as everybody has their own opinion
  27. on a good GUI, and we don't want to discourage development by shipping
  28. one with the toolkit. YOucan download an Eclipse plug-in separately.
  29. You are looking at a second full release. The unit tests for SimpleTest
  30. itself can be run here...
  31. simpletest/test/unit_tests.php
  32. And tests involving live network connections as well are here...
  33. simpletest/test/all_tests.php
  34. The full tests will typically overrun the 8Mb limit often allowed
  35. to a PHP process. A workaround is to run the tests on the command
  36. with a custom php.ini file if you do not have access to your server
  37. version.
  38. You will have to edit the all_tests.php file if you are accesssing
  39. the internet through a proxy server. See the comments in all_tests.php
  40. for instructions.
  41. The full tests read some test data from the LastCraft site. If the site
  42. is down or has been modified for a later version then you will get
  43. spurious errors. A unit_tests.php failure on the other hand would be
  44. very serious. As far as we know we haven't yet managed to check in any
  45. unit test failures, so please correct us if you find one.
  46. Even if all of the tests run please verify that your existing test suites
  47. also function as expected. If they don't see the file...
  48. HELP_MY_TESTS_DONT_WORK_ANYMORE
  49. This contains information on interface changes. It also points out
  50. deprecated interfaces, so you should read this even if all of
  51. your current tests appear to run.
  52. There is a documentation folder which contains the core reference information
  53. in English and French, although this information is fairly basic.
  54. You can find a tutorial on...
  55. http://www.lastcraft.com/first_test_tutorial.php
  56. ...to get you started and this material will eventually become included
  57. with the project documentation. A French translation exists at...
  58. http://www.onpk.net/index.php/2005/01/12/254-tutoriel-simpletest-decouvrir-les-tests-unitaires.
  59. If you download and use, and possibly even extend this tool, please let us
  60. know. Any feedback, even bad, is always welcome and we will work to get
  61. your suggestions into the next release. Ideally please send your
  62. comments to...
  63. simpletest-support@lists.sourceforge.net
  64. ...so that others can read them too. We usually try to respond within 48
  65. hours.
  66. There is no change log except at Sourceforge. You can visit the
  67. release notes to see the completed TODO list after each cycle and also the
  68. status of any bugs, but if the bug is recent then it will be fixed in SVN only.
  69. The SVN check-ins always have all the tests passing and so SVN snapshots should
  70. be pretty usable, although the code may not look so good internally.
  71. Oh, yes. It is called "Simple" because it should be simple to
  72. use. We intend to add a complete set of tools for a test first
  73. and "test as you code" type of development. "Simple" does not
  74. mean "Lite" in this context.
  75. Thanks to everyone who has sent comments and offered suggestions. They
  76. really are invaluable, but sadly you are too many to mention in full.
  77. Thanks to all on the advanced PHP forum on SitePoint, especially Harry
  78. Feucks. Early adopters are always an inspiration.
  79. Marcus Baker, Jason Sweat, Travis Swicegood, Perrick Penet and Edward Z. Yang.
  80. --
  81. marcus@lastcraft.com