Index: openacs-4/packages/acs-core-docs/www/unit-testing-guide/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/unit-testing-guide/index.adp,v diff -u -N -r1.3.2.3 -r1.3.2.4 --- openacs-4/packages/acs-core-docs/www/unit-testing-guide/index.adp 5 Jan 2021 17:33:40 -0000 1.3.2.3 +++ openacs-4/packages/acs-core-docs/www/unit-testing-guide/index.adp 3 Sep 2021 09:15:39 -0000 1.3.2.4 @@ -1,5 +1,5 @@ -{/doc/acs-core-docs {ACS Core Documentation}} {ACS4 Unit Tests} +{/doc/acs-core-docs/ {ACS Core Documentation}} {ACS4 Unit Tests} ACS4 Unit Tests

ACS4 Unit Tests

@@ -39,14 +39,14 @@ need to give it a base URL, a username, and password for that user. are the "JVMARG" lines in the "JUNIT" section. ). In the near future, this will be moved out of the subdirectories -and either into the top-level build.xml file or into a configuration +and either into the toplevel build.xml file or into a configuration file.

You should now be ready to run the tests. Go to your server's "packages" directory and type source ./paths.sh to set up your classpath. Now type -ant. Ant should find the top-level build.xml file, +ant. Ant should find the toplevel build.xml file, check that it can see JUnit, compile your java files, and finally -call Ant on each of the subdirectory build.xml files to run the +call Ant on each of the sub-directory build.xml files to run the tests. You should be shown a report of which tests failed and which succeeded.

Adding Your Own Unit Tests