-
- Downloads
tests: improve tests organization
Move all tests to one directory as no integration tests are
executed. Modernize packages used. Simplify configuration.
Signed-off-by:
Bart Jaskulski <bjaskulski@protonmail.com>
parent
4c440080
No related branches found
No related tags found
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
Showing
- composer.json 12 additions, 14 deletionscomposer.json
- phpcs.xml.dist 37 additions, 0 deletionsphpcs.xml.dist
- phpunit.xml.dist 7 additions, 0 deletionsphpunit.xml.dist
- tests/Renderer/TestSimplePhpRenderer.php 0 additions, 0 deletionstests/Renderer/TestSimplePhpRenderer.php
- tests/Renderer/templates/some_template.php 0 additions, 0 deletionstests/Renderer/templates/some_template.php
- tests/Resolver/TestChainResolver.php 2 additions, 2 deletionstests/Resolver/TestChainResolver.php
- tests/Resolver/TestDirResolver.php 2 additions, 2 deletionstests/Resolver/TestDirResolver.php
- tests/Resolver/TestWpThemeResolver.php 2 additions, 2 deletionstests/Resolver/TestWpThemeResolver.php
- tests/Resolver/templates/some_template.php 0 additions, 0 deletionstests/Resolver/templates/some_template.php
- tests/TestPluginViewBuilder.php 2 additions, 2 deletionstests/TestPluginViewBuilder.php
- tests/integration/bootstrap.php 0 additions, 28 deletionstests/integration/bootstrap.php
- tests/stub/template/file.php 0 additions, 0 deletionstests/stub/template/file.php
- tests/unit/bootstrap.php 0 additions, 6 deletionstests/unit/bootstrap.php
... | ... | @@ -8,26 +8,24 @@ |
} | ||
], | ||
"require": { | ||
"php": ">=7.0" | ||
"php": ">=7.1 | ^8" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "<7", | ||
"wp-coding-standards/wpcs": "^0.14.1", | ||
"squizlabs/php_codesniffer": "^3.0.2", | ||
"mockery/mockery": "*", | ||
"10up/wp_mock": "*", | ||
"wimg/php-compatibility": "^8" | ||
"phpunit/phpunit": "^7 | ^8 | ^9", | ||
"wpdesk/wp-code-sniffer": "^1", | ||
"mockery/mockery": "^1", | ||
"10up/wp_mock": "^1" | ||
}, | ||
"autoload": { | ||
"psr-4": {"WPDesk\\View\\": "src/"} | ||
}, | ||
"autoload-dev": { | ||
}, | ||
"scripts": { | ||
"phpcs": "phpcs", | ||
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never", | ||
"phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage", | ||
"phpunit-integration": "phpunit --configuration phpunit-integration.xml --coverage-text --colors=never", | ||
"phpunit-integration-fast": "phpunit --configuration phpunit-integration.xml --no-coverage" | ||
"test": "phpunit", | ||
"phpcs": "phpcs" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
} | ||
} |
phpcs.xml.dist
0 → 100644
phpunit.xml.dist
0 → 100644
File moved
File moved
File moved
tests/integration/bootstrap.php
deleted
100644 → 0
File moved
tests/unit/bootstrap.php
deleted
100644 → 0
Please register or sign in to comment