https://github.com/inspired-by-boredom/codeception-demo
This is demo project for examples of unit testing with Codeception full-stack framework and Yii2.
https://github.com/inspired-by-boredom/codeception-demo
codeception demo-app testing-framework unit-test yii2
Last synced: 10 months ago
JSON representation
This is demo project for examples of unit testing with Codeception full-stack framework and Yii2.
- Host: GitHub
- URL: https://github.com/inspired-by-boredom/codeception-demo
- Owner: Inspired-by-Boredom
- License: bsd-3-clause
- Created: 2017-09-25T12:55:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T11:20:56.000Z (over 8 years ago)
- Last Synced: 2025-01-29T07:41:34.807Z (12 months ago)
- Topics: codeception, demo-app, testing-framework, unit-test, yii2
- Language: PHP
- Homepage: http://slides.com/greeflas/codeception
- Size: 21.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Demo project for Codeception
This is demo project for examples of unit testing with
[Codeception](http://codeception.com/) full-stack framework and [Yii2](http://yiiframework.com).
Install Codeception into project
------------------------------
`$ composer require --dev "codeception/codeception"`
Codeception commands
--------------------
`$ ./vendor/bin/codecept bootstrap` - creates files for tests
`$ ./vendor/bin/codecept generate:test unit DemoTest` - generates unit test-case with name `DemoTest`
`$ ./vendor/bin/codecept build` - generates files for tests running
`$ ./vendor/bin/codecept run unit` - run unit tests
`$ ./vendor/bin/codecept run unit DemoTest` - run test by name
Useful links
------------
* [Testing in Yii2](http://www.yiiframework.com/doc-2.0/guide-test-overview.html)
* [Codeception Unit tests](http://codeception.com/docs/05-UnitTests)
* [Codeception module Yii2](http://codeception.com/docs/modules/Yii2)
* [Codeception module Db](http://codeception.com/docs/modules/Db)
* [Assert methods](http://codeception.com/docs/modules/Asserts)
Presentation
------------
[http://slides.com/greeflas/codeception](http://slides.com/greeflas/codeception)
Licence
-------
This project is released under the terms of the BSD-3-Clause [license](LICENSE).
Copyright (c) 2017, [Vintage Web Production](https://vintage.com.ua/)