Rename tests dir
This commit is contained in:
parent
a703749a46
commit
09ef1e74cf
|
@ -1,7 +1,7 @@
|
|||
/.* export-ignore
|
||||
/phpcs.xml export-ignore
|
||||
/phpunit.* export-ignore
|
||||
/unit-tests export-ignore
|
||||
/tests export-ignore
|
||||
/vendor export-ignore
|
||||
/README.md export-ignore
|
||||
/readme.txt export-ignore
|
||||
|
|
|
@ -26,7 +26,7 @@ Thumbs.db
|
|||
|
||||
# Unit tests
|
||||
/tmp
|
||||
/unit-tests/bin/tmp
|
||||
/tests/bin/tmp
|
||||
|
||||
# Logs
|
||||
/logs
|
||||
|
|
|
@ -27,7 +27,7 @@ filter:
|
|||
- src/Controllers/Version1/
|
||||
- src/Controllers/Version2/
|
||||
- src/Controllers/Version3/
|
||||
- unit-tests/
|
||||
- tests/
|
||||
- vendor/
|
||||
- classmap.php
|
||||
coding_style:
|
||||
|
|
|
@ -20,8 +20,8 @@ before_script:
|
|||
- composer install
|
||||
- composer global require "phpunit/phpunit=4.8.*|6.5.*"
|
||||
- composer require woocommerce/woocommerce-sniffs
|
||||
- bash unit-tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
||||
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
||||
|
||||
script:
|
||||
- bash unit-tests/bin/phpunit.sh
|
||||
- bash unit-tests/bin/phpcs.sh
|
||||
- bash tests/bin/phpunit.sh
|
||||
- bash tests/bin/phpcs.sh
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit
|
||||
bootstrap="unit-tests/Bootstrap.php"
|
||||
bootstrap="tests/Bootstrap.php"
|
||||
backupGlobals="false"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
|
@ -11,10 +11,10 @@
|
|||
>
|
||||
<testsuites>
|
||||
<testsuite name="WooCommerce REST API Test Suite">
|
||||
<directory suffix=".php">./unit-tests/Tests</directory>
|
||||
<directory suffix=".php">./tests/Tests</directory>
|
||||
</testsuite>
|
||||
<testsuite name="v4">
|
||||
<directory suffix=".php">./unit-tests/Tests/Version4</directory>
|
||||
<directory suffix=".php">./tests/Tests/Version4</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
|
|
|
@ -21,14 +21,14 @@ class Bootstrap {
|
|||
protected $wp_tests_dir;
|
||||
|
||||
/**
|
||||
* unit-tests directory.
|
||||
* Tests directory.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $tests_dir;
|
||||
|
||||
/**
|
||||
* WC Core unit-tests directory.
|
||||
* WC Core unit tests directory.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue