This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
forked from civicrm/composer-downloads-plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from tienvx/fix-composer-v1-not-installed
Fix composer v1 is not installed in lowest dependencies mode
- Loading branch information
Showing
5 changed files
with
70 additions
and
40 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
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
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 |
---|---|---|
@@ -1,28 +1,13 @@ | ||
# Automated Tests | ||
|
||
To run the tests, you will need `composer` and `phpunit` in the `PATH`. | ||
To run the tests: | ||
|
||
``` | ||
[~/composer-downloads-plugin] which composer | ||
/usr/local/bin/composer | ||
[~/composer-downloads-plugin] which phpunit | ||
/usr/local/bin/phpunit | ||
[~/src/composer-downloads-plugin] phpunit | ||
PHPUnit 9.5.26 by Sebastian Bergmann and contributors. | ||
.................................... 36 / 36 (100%) | ||
Time: 00:06.560, Memory: 30.38 MB | ||
OK (36 tests, 172 assertions) | ||
Generating code coverage report in Clover XML format ... done [00:00.035] | ||
./vendor/bin/phpunit | ||
``` | ||
|
||
To debug, set project dir so it will not be removed after running: | ||
|
||
``` | ||
env USE_TEST_PROJECT=$HOME/my-project DEBUG_COMPOSER=1 phpunit tests/Integration/InstallTest.php | ||
env USE_TEST_PROJECT=$HOME/my-project DEBUG_COMPOSER=1 ./vendor/bin/phpunit tests/Integration/InstallTest.php | ||
``` |
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
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