Skip to content
Newer
Older
100644 27 lines (18 sloc) 915 Bytes
bc2805d @sbisbee first commit
authored Mar 26, 2010
1 Sag Tests
2 =========
3
4 These would be unit tests if they didn't rely on the database - think of them
5 as a cross between integration and unit tests. They are written with PHPUnit
6 (http://www.phpunit.de/) and are known to run with version 3.3.16, though other
7 versions will probably work too.
8
9 The coverage directory contains code base coverage reports generated by PHPUnit
10 and Xdebug.
11
12
13 Running the Tests
14 -----------------
15
23e3fc4 @sbisbee Moar bootstrap.php work.
authored May 24, 2011
16 Make sure your present working directory is the tests directory (where you
17 found this file) and that the Sag src directory is above it (../src/).
18
19 You should always run `./bootstrap.php` first, as it will check to make sure
20 you have all the required binaries, that the test database doesn't already
21 exist, and that your user permissions are correct.
bc2805d @sbisbee first commit
authored Mar 27, 2010
22
23 `phpunit .` will simply run all the tests
24
08d1727 @sbisbee fixing coverage report generation example
authored Apr 12, 2010
25 `phpunit --coverage-html=./coverage/ .` will run all the tests and re-generate
26 the coverage reports
Something went wrong with that request. Please try again.