Index: openacs-4/packages/acs-core-docs/www/tutorial-debug.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-debug.adp,v diff -u -N -r1.1.2.9 -r1.1.2.10 --- openacs-4/packages/acs-core-docs/www/tutorial-debug.adp 10 Jun 2016 07:35:08 -0000 1.1.2.9 +++ openacs-4/packages/acs-core-docs/www/tutorial-debug.adp 11 Jun 2016 08:44:02 -0000 1.1.2.10 @@ -15,7 +15,7 @@ OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

-Debugging

+Debugging

Developer Support. The Developer Support package adds several goodies: debug information for every page; the ability to log comments to the page instead of the error log, and @@ -44,7 +44,7 @@           

-Manual testing

Make a list of basic tests to make sure it works

+Manual testing

Make a list of basic tests to make sure it works

@@ -72,11 +72,11 @@ delete your own note. Edit your own note. Search for a note.

-Write automated tests

+Write automated tests

by Simon Carstensen and Joel Aufrecht

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

- It seems to me that a lot of people have + It seems to me that a lot of people have been asking for some guidelines on how to write automated tests. I've done several tests by now and have found the process to be extremely easy and useful. It's a joy to work with automated @@ -144,7 +144,7 @@ myfirstpackage. You should see your test case. Run it and examine the results.

-TCLWebtest tests

API testing can only test part of our package - it doesn't test +TCLWebtest tests

API testing can only test part of our package - it doesn't test the code in our adp/tcl pairs. For this, we can use TCLwebtest. TCLwebtest must be installed for this test to work. This provides a library of functions that make it easy to call a page @@ -153,7 +153,7 @@ example provided for one approach on integrating them.

-Example

Now we can add the rest of the API tests, including a test with +Example

Now we can add the rest of the API tests, including a test with deliberately bad data. The complete test looks like:

 ad_library {
     Test cases for my first package.
Test NumActionExpected Result