aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-07-16 00:07:40 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-07-16 00:07:40 +0200
commit3ffc96c3e96de8bb26729f510e6a35be5477c6c1 (patch)
treef8e22eeff452bd79eb018a3feca66f984899bcea /tests
parent6bb3a281b1883c61b4e69f5d0840707f27b66277 (diff)
downloadnextcloud-server-3ffc96c3e96de8bb26729f510e6a35be5477c6c1.tar.gz
nextcloud-server-3ffc96c3e96de8bb26729f510e6a35be5477c6c1.zip
add database type to xml report
Diffstat (limited to 'tests')
-rw-r--r--tests/index.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/index.php b/tests/index.php
index e91b3f0da56..935ce39531a 100644
--- a/tests/index.php
+++ b/tests/index.php
@@ -26,8 +26,7 @@ require_once 'simpletest/mock_objects.php';
require_once 'simpletest/collector.php';
require_once 'simpletest/default_reporter.php';
-// test suite instance
-$testSuite=new TestSuite("ownCloud Unit Test Suite");
+$testSuiteName="ownCloud Unit Test Suite";
// prepare the reporter
if(OC::$CLI){
@@ -37,12 +36,19 @@ if(OC::$CLI){
{
$reporter= new XmlReporter;
$test=false;
+
+ if(isset($_SERVER['argv'][2])){
+ $testSuiteName=$testSuiteName." (".$_SERVER['argv'][2].")";
+ }
}
}else{
$reporter='HtmlReporter';
$test=isset($_GET['test'])?$_GET['test']:false;
}
+// test suite instance
+$testSuite=new TestSuite($testSuiteName);
+
//load core test cases
loadTests(dirname(__FILE__), $testSuite, $test);