mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
PHPUnit's enforceTimeLimit was disabled, meaning the timeoutForSmallTests, timeoutForMediumTests and timeoutForLargeTests config values had no effect. Enable enforcement and set realistic limits: 60s/300s/600s for small/medium/large, with a 300s default for unannotated tests. Also clear disable_functions in the PHP development ini preset across all PHPUnit workflows so pcntl_signal is available — without it the signal handler that drives timeout enforcement cannot be registered. Signed-off-by: Anna Larch <anna@nextcloud.com> AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Anna Larch <anna@nextcloud.com>
32 lines
1.1 KiB
XML
32 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
- SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
- SPDX-FileCopyrightText: 2014-2016 ownCloud, Inc.
|
|
- SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
bootstrap="bootstrap.php"
|
|
enforceTimeLimit="true"
|
|
defaultTimeLimit="300"
|
|
timeoutForSmallTests="60"
|
|
timeoutForMediumTests="300"
|
|
timeoutForLargeTests="600"
|
|
cacheDirectory=".phpunit.cache"
|
|
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
|
|
<testsuite name="Nextcloud files external">
|
|
<directory>../apps/files_external/tests</directory>
|
|
<!-- exclude backends as they are called separately -->
|
|
<exclude>../apps/files_external/tests/Storage/</exclude>
|
|
</testsuite>
|
|
<source>
|
|
<include>
|
|
<file>../lib/private/Files/Storage/DAV.php</file>
|
|
<directory>../apps/files_external</directory>
|
|
</include>
|
|
<exclude>
|
|
<directory>../apps/files_external/l10n</directory>
|
|
<directory>../apps/files_external/3rdparty</directory>
|
|
<directory>../apps/files_external/tests</directory>
|
|
</exclude>
|
|
</source>
|
|
</phpunit>
|