-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve test suite by adding "composer run multicover"
This will aid on running the tests with coverage on both PHP7 and PHP8, merge coverage reports and render them as HTML to be inspected by humans. It's not completely maintenance free because some paths will probably have to be adjusted for others, but it's way better than nothing.
- Loading branch information
Showing
4 changed files
with
925 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,15 +81,15 @@ Installation | |
|
||
Install prerequisites:: | ||
|
||
# Install different PHP releases. | ||
brew install [email protected] [email protected] [email protected] composer | ||
# Install different PHP releases and Composer. | ||
brew install [email protected] [email protected] [email protected] brew-php-switcher composer | ||
|
||
# Select PHP version. | ||
brew-php-switcher 7.3 | ||
brew-php-switcher 7.4 | ||
brew-php-switcher 8.0 | ||
|
||
# Install xdebug extension for tracking code coverage. | ||
# Install `xdebug` extension into each environment for tracking code coverage. | ||
pecl install xdebug | ||
|
||
Get the sources:: | ||
|
@@ -113,9 +113,19 @@ Running the Tests | |
--mount type=bind,source=$PWD/test/provisioning/truststore,target=/vagrant/test/provisioning/truststore \ | ||
--publish 4200:4200 --publish 5432:5432 crate/crate:nightly | ||
|
||
# Run test suite | ||
# Run test suite on current/default version of PHP | ||
composer run test | ||
|
||
# Run tests on both PHP7 and PHP8 to get the full picture of coverage | ||
composer run multicover | ||
open build/multicover/html/index.html | ||
|
||
|
||
Invoke code style checks | ||
======================== | ||
|
||
:: | ||
|
||
# Run code style checks | ||
composer run check-style | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.