Skip to content
Snippets Groups Projects
Unverified Commit 8aadd4e9 authored by dependabot-preview[bot]'s avatar dependabot-preview[bot] Committed by Christoph Wurst
Browse files
parent 13a11c6b
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,10 @@ jobs:
run: git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${{ matrix.nextcloud-versions }} nextcloud
- name: Install Nextcloud
run: php -f nextcloud/occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
- name: Fix php-parser on stable20 incompatibility with phpunit 9.3+
if: ${{ matrix.nextcloud-versions == 'stable20' }}
working-directory: nextcloud/3rdparty
run: composer require nikic/php-parser:4.10
- name: Checkout Mail
uses: actions/checkout@master
with:
......@@ -32,6 +36,8 @@ jobs:
- name: Run tests
working-directory: nextcloud/apps/mail
run: composer run test:unit
env:
XDEBUG_MODE: coverage
- name: Report coverage
uses: codecov/codecov-action@v1
if: ${{ always() }}
......@@ -117,6 +123,8 @@ jobs:
ss -tunlp
true | openssl s_client -crlf -connect 127.0.0.1:993
composer run test:integration
env:
XDEBUG_MODE: coverage
- name: Print debug logs
if: ${{ always() }}
run: cat nextcloud/data/horde_*.log
......
This diff is collapsed.
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<!--
~ @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
~
......@@ -19,31 +19,19 @@
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<phpunit bootstrap="bootstrap.php"
verbose="true"
timeoutForSmallTests="900"
timeoutForMediumTests="900"
timeoutForLargeTests="900"
cacheResult="true"
>
<testsuite name='Mail app tests'>
<directory suffix='test.php'>Integration</directory>
<directory suffix='Test.php'>Integration</directory>
</testsuite>
<!-- filters for code coverage -->
<filter>
<whitelist>
<directory suffix=".php">../</directory>
<exclude>
<directory suffix=".php">../mail/l10n</directory>
<directory suffix=".php">../mail/templates</directory>
<directory suffix=".php">../mail/tests</directory>
</exclude>
</whitelist>
</filter>
<logging>
<!-- and this is where your report will be written -->
<log type="coverage-clover" target="./clover.integration.xml"/>
</logging>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="bootstrap.php" verbose="true" timeoutForSmallTests="900" timeoutForMediumTests="900" timeoutForLargeTests="900" cacheResult="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">../lib</directory>
</include>
<exclude>
<directory suffix=".php">../mail/lib/Vendor</directory>
</exclude>
<report>
<clover outputFile="./clover.integration.xml"/>
</report>
</coverage>
<testsuite name="Mail app tests">
<directory suffix="Test.php">Integration</directory>
</testsuite>
</phpunit>
<?xml version="1.0" encoding="utf-8" ?>
<phpunit bootstrap="bootstrap.php"
verbose="true"
timeoutForSmallTests="900"
timeoutForMediumTests="900"
timeoutForLargeTests="900"
cacheResult="true"
>
<testsuite name='Mail app tests'>
<directory suffix='test.php'>Unit</directory>
<directory suffix='Test.php'>Unit</directory>
</testsuite>
<!-- filters for code coverage -->
<filter>
<whitelist>
<directory suffix=".php">../</directory>
<exclude>
<directory suffix=".php">../mail/l10n</directory>
<directory suffix=".php">../mail/templates</directory>
<directory suffix=".php">../mail/tests</directory>
</exclude>
</whitelist>
</filter>
<logging>
<!-- and this is where your report will be written -->
<log type="coverage-clover" target="./clover.unit.xml"/>
</logging>
<?xml version="1.0" encoding="utf-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="bootstrap.php" verbose="true" timeoutForSmallTests="900" timeoutForMediumTests="900" timeoutForLargeTests="900" cacheResult="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">../lib</directory>
</include>
<exclude>
<directory suffix=".php">../mail/lib/Vendor</directory>
</exclude>
<report>
<clover outputFile="./clover.unit.xml"/>
</report>
</coverage>
<testsuite name="Mail app tests">
<directory suffix="Test.php">Unit</directory>
</testsuite>
</phpunit>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment