Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webimp/codeception-performance-test
Codeception Extension to list out slow steps during the test. Compatible with Codeception 2.2.7.
https://github.com/webimp/codeception-performance-test
Last synced: about 2 months ago
JSON representation
Codeception Extension to list out slow steps during the test. Compatible with Codeception 2.2.7.
- Host: GitHub
- URL: https://github.com/webimp/codeception-performance-test
- Owner: webimp
- License: gpl-2.0
- Created: 2017-01-08T03:34:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T12:40:14.000Z (almost 6 years ago)
- Last Synced: 2024-10-27T21:19:10.400Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PerformanceTest
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5910781de43943cfa756382e133ff130)](https://www.codacy.com/app/KhairulA/codeception-performance-test?utm_source=github.com&utm_medium=referral&utm_content=webimp/codeception-performance-test&utm_campaign=badger)
Codeception Extension to list out slow steps during the test. Compatible with [Codeception 2.2.7](http://codeception.com).
After running your tests you will see a Performance Report of your slow tests:
```bash
Slow Steps (more than 2.5s) ----------------------
I click button 6s
```## Installation
Add PerformanceTest to your `composer.json`:```yaml
"require-dev": {
...
"webimp/codeception-performance-test": "1.0.*",
```## Usage
Add this to your extensions line at the bottom of your `codeception.yml`:```yaml
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
extensions:
enabled:
- Codeception\Extension\PerformanceTest:
benchmark: 2.5 # min seconds for step to be marked as "slow"
```Include the file into your `_bootstrap.php`:
```php
include('./vendor/webimp/codeception-performance-test/src/PerformanceTest.php');
```