@@ -73,13 +73,13 @@
to delete your own note. Edit your own note. Search for a note.
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
+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
testing once you get the hang of it.
Create the directory that will contain the test script and edit
the script file. The directory location and file name are standards
@@ -148,7 +148,7 @@
myfirstpackage. You should see your test case. Run it and examine
the results.
API testing can only test part of our package - it doesn't
+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
@@ -158,7 +158,7 @@
integrating them.
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.