Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.