Skip to content
Snippets Groups Projects
Commit 85ba34f9 authored by totten's avatar totten
Browse files

Merge branch 'phpunit' into 'master'

Upgrade phpunit config

See merge request !6
parents 61d9c81b 67fa2c5f
No related branches found
No related tags found
1 merge request!6Upgrade phpunit config
......@@ -15,13 +15,13 @@ Tests are organized into two groups:
* `@group unit`: Basic tests that run without much environmental setup/support. To run this group:
```bash
cd coworker
phpunit8 --group unit
phpunit9 --group unit
```
* `@group e2e`: End-to-end tests that require a working Civi instance (`CV_TEST_BUILD`). To run this group:
```bash
cd coworker
export CV_TEST_BUILD='/path/to/site/root'
phpunit8 --group e2e
phpunit9 --group e2e
```
<!-- Wishlist: Alow E2E testing on (cv || drush || wp-cli). Take pipe-command instead of folder-path, and get everything you need via pipe. -->
......
<phpunit backupGlobals="false"
backupStaticAttributes="false"
cacheResult ="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" cacheResult="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Coworker Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</phpunit>
......@@ -10,5 +10,5 @@ shift
set -x
phpunit8 --group unit "$@"
phpunit8 --group e2e "$@"
phpunit9 --group unit "$@"
phpunit9 --group e2e "$@"
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