mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
* fix: bug in Session_Transaction_Manager::pop_transaction_id fixed * chore: Linter and PHPStan compliance met * devops: tests updated * devops: WPBrowser upgraded to v4.x.x * devops: Some unit testing configurations updated * devops: WPBrowser updated and tests passing * chore: PHPStan and linter compliance met * devops: WP_CORE_DIR fixed * devops: More docker config changes * devops: CartMutationsTest updated * devops: CI env vars fixed * devops: More CI fixes * devops: More CI fixes * devops: More CI fixes * devop: Docker env removed * devops: Codeception configs updated * devops: configurations tweaked heavily
89 lines
2.6 KiB
YAML
89 lines
2.6 KiB
YAML
paths:
|
|
tests: tests
|
|
output: tests/_output
|
|
data: tests/_data
|
|
support: tests/_support
|
|
envs: tests/_envs
|
|
params:
|
|
- env
|
|
- .env.docker
|
|
actor_suffix: Tester
|
|
settings:
|
|
colors: true
|
|
memory_limit: 1024M
|
|
coverage:
|
|
enabled: true
|
|
include:
|
|
- 'includes/*'
|
|
- 'access-functions.php'
|
|
exclude:
|
|
- 'local/*'
|
|
- 'vendor/*'
|
|
- 'wp-graphql-woocommerce.php'
|
|
show_only_summary: false
|
|
extensions:
|
|
enabled:
|
|
- Codeception\Extension\RunFailed
|
|
commands:
|
|
- Codeception\Command\GenerateWPUnit
|
|
- Codeception\Command\GenerateWPRestApi
|
|
- Codeception\Command\GenerateWPRestController
|
|
- Codeception\Command\GenerateWPRestPostTypeController
|
|
- Codeception\Command\GenerateWPAjax
|
|
- Codeception\Command\GenerateWPCanonical
|
|
- Codeception\Command\GenerateWPXMLRPC
|
|
modules:
|
|
config:
|
|
\Tests\WPGraphQL\Codeception\Module\WPGraphQL:
|
|
endpoint: '%WORDPRESS_URL%/graphql'
|
|
WPDb:
|
|
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%'
|
|
user: '%DB_USER%'
|
|
password: '%DB_PASSWORD%'
|
|
populator: 'mysql -u $user -p$password -h $host $dbname < $dump'
|
|
dump: 'local/db/app_db.sql'
|
|
populate: true
|
|
cleanup: false
|
|
waitlock: 10
|
|
url: '%WORDPRESS_URL%'
|
|
urlReplacement: true
|
|
tablePrefix: '%WP_TABLE_PREFIX%'
|
|
WPBrowser:
|
|
url: '%WORDPRESS_URL%'
|
|
wpRootFolder: '%WP_CORE_DIR%'
|
|
adminUsername: '%ADMIN_USERNAME%'
|
|
adminPassword: '%ADMIN_PASSWORD%'
|
|
adminPath: '/wp-admin'
|
|
REST:
|
|
depends: WPBrowser
|
|
url: '%WORDPRESS_URL%'
|
|
cookies: false
|
|
WPFilesystem:
|
|
wpRootFolder: '%WP_CORE_DIR%'
|
|
plugins: '/wp-content/plugins'
|
|
mu-plugins: '/wp-content/mu-plugins'
|
|
themes: '/wp-content/themes'
|
|
uploads: '/wp-content/uploads'
|
|
WPLoader:
|
|
wpRootFolder: '%WP_CORE_DIR%'
|
|
dbUrl: 'mysql://%DB_USER%:%DB_PASSWORD%@%DB_HOST%:%DB_PORT%/%DB_NAME%'
|
|
tablePrefix: '%WP_TABLE_PREFIX%'
|
|
domain: '%WORDPRESS_DOMAIN%'
|
|
adminEmail: '%ADMIN_EMAIL%'
|
|
title: 'WooGraphQL Tests'
|
|
plugins:
|
|
- woocommerce/woocommerce.php
|
|
- woocommerce-gateway-stripe/woocommerce-gateway-stripe.php
|
|
- wp-graphql/wp-graphql.php
|
|
- wp-graphql-jwt-authentication/wp-graphql-jwt-authentication.php
|
|
- wp-graphql-woocommerce/wp-graphql-woocommerce.php
|
|
activatePlugins:
|
|
- woocommerce/woocommerce.php
|
|
- woocommerce-gateway-stripe/woocommerce-gateway-stripe.php
|
|
- wp-graphql/wp-graphql.php
|
|
- wp-graphql-jwt-authentication/wp-graphql-jwt-authentication.php
|
|
- wp-graphql-woocommerce/wp-graphql-woocommerce.php
|
|
configFile: 'tests/_data/config.php'
|
|
|
|
|