Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FriendsOfCake/fixturize
CakePHP: Improve performance of your fixture based tests on MySQL.
https://github.com/FriendsOfCake/fixturize
Last synced: about 1 month ago
JSON representation
CakePHP: Improve performance of your fixture based tests on MySQL.
- Host: GitHub
- URL: https://github.com/FriendsOfCake/fixturize
- Owner: FriendsOfCake
- License: mit
- Created: 2016-07-04T13:24:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T14:17:56.000Z (4 months ago)
- Last Synced: 2024-10-11T04:50:32.296Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 34.2 KB
- Stars: 24
- Watchers: 9
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-cakephp - FriendsOfCake/Fixturize plugin - More efficient inserting fixtures when running test suites by decreasing amount of inserts (mysql only). (Testing)
README
[![Latest Stable Version](https://img.shields.io/packagist/v/FriendsOfCake/fixturize.svg?style=flat-square)](https://packagist.org/packages/FriendsOfCake/fixturize)
# Installation
```
composer require friendsofcake/fixturize
```# Introduction
The fixturize plugin will help improve performance of your fixture based tests.
This plugin currently only work with MySQL/MariaDB/Percona databases.
# Usage
Instead of
``use Cake\TestSuite\Fixture\TestFixture;``
simply use
``use FriendsOfCake\Fixturize\TestSuite\Fixture\ChecksumTestFixture as TestFixture;``
Re-run your tests and enjoy the speed!
# Real life improvements
Who
# Tests
Before
After
Bownty Content Importer
364
15s
5s
Apacta REST API (110 fixtures)
318
180s
30s
Feel free to submit your own results above.