summaryrefslogtreecommitdiffstats
path: root/tests/lib/TestCase.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-29 00:53:53 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-10-05 13:55:44 +0200
commita1f5364d7f43d708d326e7dcdb409ab157ce9dfe (patch)
treef05468f090b5dc2d97fb925d2b415047b8c7f787 /tests/lib/TestCase.php
parent66ae43880b7d898e54a47d3a4651684d85a1e951 (diff)
downloadnextcloud-server-a1f5364d7f43d708d326e7dcdb409ab157ce9dfe.tar.gz
nextcloud-server-a1f5364d7f43d708d326e7dcdb409ab157ce9dfe.zip
Generate coverage for quick DB tests
This adds the "QUICKDB" group which excludes some tests that abuse unit tests as integration tests as displayed in https://github.com/nextcloud/server/issues/1626 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/lib/TestCase.php')
-rw-r--r--tests/lib/TestCase.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/TestCase.php b/tests/lib/TestCase.php
index 0389ef5d46b..7ccff382357 100644
--- a/tests/lib/TestCase.php
+++ b/tests/lib/TestCase.php
@@ -435,8 +435,10 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
return true;
}
$annotations = $this->getAnnotations();
- if (isset($annotations['class']['group']) && in_array('DB', $annotations['class']['group'])) {
- return true;
+ if (isset($annotations['class']['group'])) {
+ if(in_array('DB', $annotations['class']['group']) || in_array('SLOWDB', $annotations['class']['group']) ) {
+ return true;
+ }
}
return false;