Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coworker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
Coworker
Commits
85ba34f9
Commit
85ba34f9
authored
1 year ago
by
totten
Browse files
Options
Downloads
Plain Diff
Merge branch 'phpunit' into 'master'
Upgrade phpunit config See merge request
!6
parents
61d9c81b
67fa2c5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Upgrade phpunit config
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/develop.md
+2
-2
2 additions, 2 deletions
doc/develop.md
phpunit.xml.dist
+7
-17
7 additions, 17 deletions
phpunit.xml.dist
scripts/run-tests.sh
+2
-2
2 additions, 2 deletions
scripts/run-tests.sh
with
11 additions
and
21 deletions
doc/develop.md
+
2
−
2
View file @
85ba34f9
...
...
@@ -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
phpunit
8
--group
unit
phpunit
9
--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'
phpunit
8
--group
e2e
phpunit
9
--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. -->
...
...
This diff is collapsed.
Click to expand it.
phpunit.xml.dist
+
7
−
17
View file @
85ba34f9
<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>
This diff is collapsed.
Click to expand it.
scripts/run-tests.sh
+
2
−
2
View file @
85ba34f9
...
...
@@ -10,5 +10,5 @@ shift
set
-x
phpunit
8
--group
unit
"
$@
"
phpunit
8
--group
e2e
"
$@
"
phpunit
9
--group
unit
"
$@
"
phpunit
9
--group
e2e
"
$@
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment