betooliveira / mage-code-ception
BDD-style testing framework
Requires
- php: >=5.4.0
- ext-json: *
- ext-mbstring: *
- facebook/webdriver: ~0.4
- guzzlehttp/guzzle: ~4.0|~5.0
- phpunit/phpunit: ~4.0
- symfony/browser-kit: ~2.4
- symfony/console: ~2.4
- symfony/css-selector: ~2.4
- symfony/dom-crawler: ~2.4,!=2.4.5
- symfony/event-dispatcher: ~2.4
- symfony/finder: ~2.4
- symfony/yaml: ~2.4
Requires (Dev)
- codeception/specify: ~0.3
- codegyre/robo-ci: @dev
- facebook/php-sdk: ~3.2
- flow/jsonpath: ~0.1
- monolog/monolog: ~1.8
- pda/pheanstalk: ~2.0
- phpseclib/phpseclib: ~0.3.6
- videlalvaro/php-amqplib: ~2.4
Suggests
- codeception/phpbuiltinserver: Extension to start and stop PHP built-in web server for your tests
- codeception/specify: BDD-style code blocks
- codeception/verify: BDD-style assertions
- monolog/monolog: Log test steps
- phpseclib/phpseclib: Extension required to use the SFTP option in the FTP Module.
- dev-master
- 2.0.x-dev
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-RC2
- 2.0.0-RC
- 2.0.0-beta
- 2.0.0-alpha
- 1.8.x-dev
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0.1
- 1.8.0
- 1.7.x-dev
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0.2
- 1.7.0.1
- 1.7.0
- 1.6.x-dev
- 1.6.12
- 1.6.11
- 1.6.8.1
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4.2
- 1.6.4.1
- 1.6.4
- 1.6.3.1
- 1.6.3
- 1.6.2
- 1.6.1.1
- 1.6.1
- 1.6.0.4
- 1.6.0.3
- 1.6.0.1
- 1.6.0
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.0
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- dev-feature/magento_module
- dev-revert-1406-ignore_id_not_found
- dev-docs
- dev-revert-1160-patch-1
This package is not auto-updated.
Last update: 2016-10-02 06:21:57 UTC
README
Modern PHP Testing for everyone
Codeception is a modern full-stack testing framework for PHP. Inspired by BDD, it provides you an absolutely new way of writing acceptance, functional and even unit tests. Powered by PHPUnit.
release | branch | status |
---|---|---|
Stable | 1.8 | |
Current | 2.0 | |
Edge | master |
Contributions
Code
Bugfixes should be sent to to current stable branch, which is the same as major version number.
Breaking features and major improvements should be sent into master
. When you send PRs to master, they will be added to release cycle only when the next stable branch is started.
Check also the "tests/README.md" to learn more about the available internal Codeception tests.
Documentation
The documentation for each module is directly generated from the corresponding docblock which can be found in each module (src/Module/Codeception/*.php).
At a Glance
Describe what you test and how you test it. Use PHP to write descriptions faster.
Run tests and see what actions were taken and what results were seen.
Sample acceptance test
<?php $I = new FunctionalTester($scenario); $I->wantTo('create wiki page'); $I->amOnPage('/'); $I->click('Pages'); $I->click('New'); $I->see('New Page'); $I->submitForm('form#new_page', array('title' => 'Tree of Life Movie Review','body' => "Next time don't let Hollywood create art-house!")); $I->see('page created'); // notice generated $I->see('Tree of Life Movie Review','h1'); // head of page of is our title $I->seeInCurrentUrl('pages/tree-of-life-movie-review'); // slug is generated $I->seeInDatabase('pages', array('title' => 'Tree of Life Movie Review')); // data is stored in database ?>
For unit testing you can stay on classic PHPUnit tests, as Codeception can run them too.
Documentation
Documentation is currently included within the project. Look for it in the 'docs' directory.
Installation
Phar
Download codecept.phar
Copy it into your project.
Run CLI utility:
php codecept.phar
Composer
php composer.phar require "codeception/codeception"
Read Also Installation | QuickStart
Getting Started
If you successfully installed Codeception, run this command:
codecept bootstrap
this will create a default directory structure and default test suites
See Documentation for more information.
License
MIT
(c) Michael Bodnarchuk "Davert" 2011-2014