unknown / qa-bundle
Quality assurance bundle for Symfony2
Requires
- php: ~5.3
- behat/behat: ~3.0
- doctrine/orm: ~2.2
- sensio/framework-extra-bundle: ~2.0
- symfony/dependency-injection: ~2.0
Requires (Dev)
- phpspec/phpspec: ~2.1
This package is not auto-updated.
Last update: 2024-05-25 15:29:22 UTC
README
This bundle provides you with:
- Database purge only if changes were made
Issues and feature requests are tracked in the Github issue tracker https://github.com/unknown-opensource/qa-bundle/issues
Installation
-
To install this bundle with Composer, just add the following to your composer.json file:
require: { ... "unknown/qa-bundle": "1.0.2" }
-
Then register the bundle in AppKernel::registerBundles()
$bundles = array( ... new Unknown\Bundle\QABundle\UnknownQABundle(), );
-
Add DatabaseContext in Behat:
default: suites: default: contexts: - Unknown\QABundle\Behat\DatabaseContext container: '@service_container'
Result
Database will be purged if and only if changes were made during previous scenario. Database will also be purged if scenario is tagged with either @javascript or @db-purge.
Good luck!