summaryrefslogtreecommitdiffstatshomepage
path: root/tests/allTests.php
diff options
context:
space:
mode:
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