]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/javascript/tests/README
LP1999823: Bump libtool library version
[OpenSRF.git] / src / javascript / tests / README
1 Running JavaScript tests
2 ========================
3
4 These tests have been created using the
5 http://dojotoolkit.org/reference-guide/util/doh.html[Dojo Objective Harness
6 (DOH)] testing framework.
7
8 To run these tests from the command line:
9
10   1. Download and extract a Dojo Toolkit source tarball:
11 +
12 --------------------------------------------------------------------------------
13 wget http://download.dojotoolkit.org/release-1.6.0/dojo-release-1.6.0-src.tar.gz
14 tar xzf dojo-release-1.6.0-src.tar.gz
15 ------------------------------------------------------------------------------
16 +
17   2. Copy the OpenSRF JavaScript directory into the Dojo source tree and move
18      the 'DojoSRF.js' file into place:
19 +
20 ------------------------------------------------------------------------------
21 cp -r src/javascript dojo-release-1.6.0-src/opensrf
22 mv dojo-release-1.6.0-src/opensrf/DojoSRF.js dojo-release-1.6.0-src/.
23 ------------------------------------------------------------------------------
24 +
25   3. Run the tests from the Dojo 'util/doh' directory, specifying the OpenSRF
26      test module:
27 +
28 ------------------------------------------------------------------------------
29 cd dojo-release-1.6.0-src/util/doh
30 sh runner.sh testModule=opensrf.tests.module
31 ------------------------------------------------------------------------------