Rename tests dir

This commit is contained in:
Mike Jolley 2019-06-24 16:17:02 +01:00
parent a703749a46
commit 09ef1e74cf
6 changed files with 11 additions and 11 deletions

2
.gitattributes vendored
View File

@ -1,7 +1,7 @@
/.* export-ignore /.* export-ignore
/phpcs.xml export-ignore /phpcs.xml export-ignore
/phpunit.* export-ignore /phpunit.* export-ignore
/unit-tests export-ignore /tests export-ignore
/vendor export-ignore /vendor export-ignore
/README.md export-ignore /README.md export-ignore
/readme.txt export-ignore /readme.txt export-ignore

2
.gitignore vendored
View File

@ -26,7 +26,7 @@ Thumbs.db
# Unit tests # Unit tests
/tmp /tmp
/unit-tests/bin/tmp /tests/bin/tmp
# Logs # Logs
/logs /logs

View File

@ -27,7 +27,7 @@ filter:
- src/Controllers/Version1/ - src/Controllers/Version1/
- src/Controllers/Version2/ - src/Controllers/Version2/
- src/Controllers/Version3/ - src/Controllers/Version3/
- unit-tests/ - tests/
- vendor/ - vendor/
- classmap.php - classmap.php
coding_style: coding_style:

View File

@ -20,8 +20,8 @@ before_script:
- composer install - composer install
- composer global require "phpunit/phpunit=4.8.*|6.5.*" - composer global require "phpunit/phpunit=4.8.*|6.5.*"
- composer require woocommerce/woocommerce-sniffs - 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: script:
- bash unit-tests/bin/phpunit.sh - bash tests/bin/phpunit.sh
- bash unit-tests/bin/phpcs.sh - bash tests/bin/phpcs.sh

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit <phpunit
bootstrap="unit-tests/Bootstrap.php" bootstrap="tests/Bootstrap.php"
backupGlobals="false" backupGlobals="false"
colors="true" colors="true"
convertErrorsToExceptions="true" convertErrorsToExceptions="true"
@ -11,10 +11,10 @@
> >
<testsuites> <testsuites>
<testsuite name="WooCommerce REST API Test Suite"> <testsuite name="WooCommerce REST API Test Suite">
<directory suffix=".php">./unit-tests/Tests</directory> <directory suffix=".php">./tests/Tests</directory>
</testsuite> </testsuite>
<testsuite name="v4"> <testsuite name="v4">
<directory suffix=".php">./unit-tests/Tests/Version4</directory> <directory suffix=".php">./tests/Tests/Version4</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
</phpunit> </phpunit>

View File

@ -21,14 +21,14 @@ class Bootstrap {
protected $wp_tests_dir; protected $wp_tests_dir;
/** /**
* unit-tests directory. * Tests directory.
* *
* @var string * @var string
*/ */
protected $tests_dir; protected $tests_dir;
/** /**
* WC Core unit-tests directory. * WC Core unit tests directory.
* *
* @var string * @var string
*/ */