Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/charonlab/testing
Testing utilities for charonlab packages.
https://github.com/charonlab/testing
Last synced: about 1 month ago
JSON representation
Testing utilities for charonlab packages.
- Host: GitHub
- URL: https://github.com/charonlab/testing
- Owner: charonlab
- License: mit
- Created: 2024-03-11T19:58:00.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-03-12T17:12:26.000Z (10 months ago)
- Last Synced: 2024-03-15T07:06:52.020Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# charonlab/testing
[![License](https://poser.pugx.org/charonlab/testing/license.svg)](https://packagist.org/packages/charonlab/testing)
## Installation
Use the composer to install:
```bash
composer require --dev charonlab/testing
```## Usage
### PHPUnit
Create a `phpunit.xml.dist` file, below is a sample configuration.
```xml
tests
src
```
### PHPBench
Create a `phpbench.json` file, below is a sample configuration.
```json
{
"$schema":"./vendor/phpbench/phpbench/phpbench.schema.json","runner.bootstrap": "./vendor/autoload.php",
"runner.path": "tests/Performance",
"runner.progress": "plain",
"runner.iterations": 20,
"runner.revs": 1000,
"runner.file_pattern": "*Bench.php",
"report.generators": {"compressed": {
"title": "Charon Container Benchmark Tests",
"generator": "expression",
"cols": [ "benchmark", "subject", "mem_peak", "mode", "mean", "best", "worst" ]
}
},"core.extensions": [
"PhpBench\\Extensions\\XDebug\\XDebugExtension"
]
}
```## Support
- [Issues](https://github.com/charonlab/testing/issues/)
## License
The MIT License (MIT). Please see [License](LICENSE) for more information.