https://github.com/clagiordano/phpunit-result-printer
Phpunit custom result printer class
https://github.com/clagiordano/phpunit-result-printer
cli phpunit phpunit-tests printer results unittesting
Last synced: 12 days ago
JSON representation
Phpunit custom result printer class
- Host: GitHub
- URL: https://github.com/clagiordano/phpunit-result-printer
- Owner: clagiordano
- Created: 2018-01-22T14:48:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T10:06:31.000Z (6 months ago)
- Last Synced: 2024-10-25T04:31:52.445Z (6 months ago)
- Topics: cli, phpunit, phpunit-tests, printer, results, unittesting
- Language: PHP
- Size: 73.2 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHPUnit result printer
PHPUnit result printer is a custom phpunit result printer with pretty output and timings
Sample image:

## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
What things you need to install the software and how to install them
- php >= 5.3.3
- composer### Compatiblity table
Version | PHP | Phpunit
:---: | :---: | :---:
1.x.x | >=5.3.3 | <=4.8
2.0.x | >=7.1 | ^7
2.1.x | >=7.1 | ^7\|^8
3.x.x | >=7.3 | ^9### Installing
The recommended way to install phpunit-result-printer is through [Composer](https://getcomposer.org).
```bash
composer require clagiordano/phpunit-result-printer
```After install you can edit your phpunit.xml as follow:
```xml
...
```
A full phpunit.xml example:
```xml
./tests/
```
## Running the tests
You can clone and test this project with the following commands:
```bash
git clone https://github.com/clagiordano/phpunit-result-printer.git
cd phpunit-result-printer
composer install
./vendor/bin/phpunit
```One of the previous tests fails for demo purpose
## Contributing
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
## Authors
* **Claudio Giordano** - *Initial work* - [clagiordano](https://github.com/clagiordano)
See also the list of [contributors](CONTRIBUTORS.md) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details