Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds README files to tests/ and examples/.
- Loading branch information
Jim Safley
committed
Jan 6, 2011
1 parent
d0346e9
commit 0c71a6c
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Testing Scripto | ||
============= | ||
|
||
Scripto uses the SimpleTest PHP testing framework. By running these tests, you | ||
can: | ||
|
||
* Test your external system's adapter for expected results; | ||
* Test the your MediaWiki instance via Scripto's MediaWiki API client; | ||
* Test the Scripto_Document base class. | ||
|
||
Installation | ||
------------- | ||
|
||
* Download the [SimpleTest](http://www.simpletest.org/) framework; | ||
* Copy config.php.changeme to config.php; | ||
* Set the configuration in config.php; | ||
|
||
To copy the configuration file: | ||
|
||
$ cd /path/to/scripto/tests/ | ||
$ cp config.php.changeme config.php` | ||
|
||
|
||
Running the Tests | ||
------------- | ||
|
||
On the command line: | ||
|
||
$ cd /path/to/scripto/tests/ | ||
$ php all_tests.php | ||
|
||
In the browser: | ||
|
||
* Make sure the Scripto tests directory is available to your web server; | ||
* Go to http://your-domain/tests/all_tests.php |