Skip to content

Commit 822bb72

Browse files
authored
[FEATURE] Add Composer scripts to run unit tests (MyIntervals#488)
The `ci` script now also runs `ci:dynamic` which in turn runs `ci:tests`. The PHPUnit cache is only applicable if the configuration is to run previously failing tests first, which it isn't, hence `--do-not-cache-result`. Also update the readme instructions for running all code checks. Relates to MyIntervals#486.
1 parent 97cee41 commit 822bb72

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,5 +633,17 @@ class Sabberworm\CSS\CSSList\Document#4 (2) {
633633

634634
## Misc
635635

636-
* Legacy Support: The latest pre-PSR-0 version of this project can be checked with the `0.9.0` tag.
637-
* Running Tests: To run all unit tests for this project, run `composer install` to install phpunit and use `./vendor/bin/phpunit`.
636+
### Legacy Support
637+
638+
The latest pre-PSR-0 version of this project can be checked with the `0.9.0` tag.
639+
640+
### Running Tests
641+
642+
To run all continuous integration (CI) checks for this project (including unit tests),
643+
* run `composer install` to install the development dependencies managed with Composer;
644+
* run `phive install` to install the development dependencies managed with PHIVE;
645+
* [Installation of PHIVE](https://github.com/phar-io/phive?tab=readme-ov-file#getting-phive)
646+
* run `composer ci` to run all static and dynamic CI checks.
647+
648+
Details of other Composer scripts available (e.g. to run one specific CI check) are provided with `composer list`.
649+

0 commit comments

Comments
 (0)