summaryrefslogtreecommitdiffstats
path: root/tests/phpunit-autotest.xml
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-12-19 20:18:09 +0100
committerVincent Petry <pvince81@owncloud.com>2013-12-19 20:18:09 +0100
commit1c340444a43d76c388153059aefd24276d8347a9 (patch)
tree5ce6a7c7c9feeb9cf6e1e793d7d742af709ed5be /tests/phpunit-autotest.xml
parent526e8730733f1ac1be76deacf2e45fba37f6fbb8 (diff)
downloadnextcloud-server-1c340444a43d76c388153059aefd24276d8347a9.tar.gz
nextcloud-server-1c340444a43d76c388153059aefd24276d8347a9.zip
Added test cleanup listener to detect untidy tests
After each test suite, detects whether there are stray datafiles, hooks or proxies, then show a warning and clear them.
Diffstat (limited to 'tests/phpunit-autotest.xml')
-rw-r--r--tests/phpunit-autotest.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/phpunit-autotest.xml b/tests/phpunit-autotest.xml
index a893e96ad97..1a2ab35491b 100644
--- a/tests/phpunit-autotest.xml
+++ b/tests/phpunit-autotest.xml
@@ -35,5 +35,12 @@
</exclude>
</whitelist>
</filter>
+ <listeners>
+ <listener class="TestCleanupListener" file="testcleanuplistener.php">
+ <arguments>
+ <string>detail</string>
+ </arguments>
+ </listener>
+ </listeners>
</phpunit>