aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-10 17:51:31 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-10 17:51:31 +0000
commit3edc7cf8bbe50744dd260eed8df825e69e83fb26 (patch)
tree5d7789a2207a54201ad0cd4629f9c0fd5b1890b9
parent49ab86961643e18490e6fa129209fc49aa79c12a (diff)
downloadsemanticscuttle-3edc7cf8bbe50744dd260eed8df825e69e83fb26.tar.gz
semanticscuttle-3edc7cf8bbe50744dd260eed8df825e69e83fb26.tar.bz2
update unit test instructions
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@534 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--tests/LAUNCH_TESTS29
1 files changed, 25 insertions, 4 deletions
diff --git a/tests/LAUNCH_TESTS b/tests/LAUNCH_TESTS
index 5fcc559..7d6ddc0 100644
--- a/tests/LAUNCH_TESTS
+++ b/tests/LAUNCH_TESTS
@@ -1,7 +1,28 @@
-You need PHPunit.
+Running SemanticScuttle unit tests
+==================================
-Then
+Prerequisites
+-------------
+The unit tests use PHPUnit.
+For installation instructions, see http://phpunit.de/
-To launch the tests, type in a console situated in the root of the SEMANTICSCUTTLE project (where is the SEMANTICSCUTTLE config file):
-phpunit --testdox-html tests/dox.html AllTests tests/allTests.php
+Warning
+-------
+The unit tests are DESTRUCTIBLE! Never ever run them on your
+normal SemanticScuttle database! Always use a different database
+for testing - whole tables are emptied and re-filled during the
+tests, and you will definitely loose all data in there.
+
+
+Running the tests
+-----------------
+To run a single test class, execute it like a normal php script:
+ php tests/BookmarkTest.php
+
+To run *all* the tests, run
+ php tests/AllTests.php
+
+If you want features like code coverage, you need to use
+the phpunit executable:
+ phpunit --coverage-html /tmp/sc-coverage/ tests/AllTests.php