summaryrefslogtreecommitdiff
path: root/tests/allTests.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 10:59:43 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 10:59:43 +0000
commitd8a5adc285fbd9237d7c3140f6d6a11b6eceaaee (patch)
treecfd865d1e3121f5dc3d091eafaf6cdcb1bd659ef /tests/allTests.php
parentff7328e8deffd5a4dae1e7c0a1836ee903e2307f (diff)
downloadsemanticscuttle-d8a5adc285fbd9237d7c3140f6d6a11b6eceaaee.tar.gz
semanticscuttle-d8a5adc285fbd9237d7c3140f6d6a11b6eceaaee.tar.bz2
Major refactoring: improve tests process. add a main file called allTests.php.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@203 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'tests/allTests.php')
-rw-r--r--tests/allTests.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/allTests.php b/tests/allTests.php
new file mode 100644
index 0000000..843911c
--- /dev/null
+++ b/tests/allTests.php
@@ -0,0 +1,39 @@
+<?php
+
+/*
+* To launch all tests, type the following line into the root directory
+* of SemanticScuttle (where is the config.inc.php file) :
+*
+* phpunit --testdox-html tests/dox.html AllTests tests/allTests.php
+*
+* !!Check that $debugMode = false in config.inc.php to avoid unstable beahviours!!
+*
+* A dox.html file will be created into the tests/ directory providing a summary
+* of tests according to agile development.
+* */
+
+class AllTests extends PHPUnit_Framework_TestSuite
+{
+ public static function suite()
+ {
+ $suite = new AllTests();
+ $suite->addTestFile('tests/bookmarksTest.php');
+ $suite->addTestFile('tests/tag2TagTest.php');
+ $suite->addTestFile('tests/tagsCacheTest.php');
+ $suite->addTestFile('tests/commonDescriptionTest.php');
+ $suite->addTestFile('tests/searchTest.php');
+ $suite->addTestFile('tests/tagsTest.php');
+ return $suite;
+ }
+
+ protected function setUp()
+ {
+ global $dbhost, $dbuser, $dbpass, $dbname, $dbport, $dbpersist, $dbtype, $tableprefix, $TEMPLATES_DIR, $filetypes, $debugMode;
+ require_once('./header.inc.php');
+ }
+
+ protected function tearDown()
+ {
+ }
+}
+?> \ No newline at end of file