Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcelod/ciunit-for-ci2
CIUnit for CodeIgniter 2.x
https://github.com/marcelod/ciunit-for-ci2
Last synced: 3 months ago
JSON representation
CIUnit for CodeIgniter 2.x
- Host: GitHub
- URL: https://github.com/marcelod/ciunit-for-ci2
- Owner: marcelod
- Fork: true (fukata/CIUnit-for-CI2)
- Created: 2016-03-11T20:24:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2013-07-29T07:41:18.000Z (over 11 years ago)
- Last Synced: 2024-04-17T03:13:02.227Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What's this
[CIUnit](https://bitbucket.org/rafsoaken/ciunit) for CodeIgniter 2.x## Installation
## Use install.sh
./tools/install.sh [CI2 Project Path]
## Manual
### Copy CIUnit Files
cp -R CIUnit-for-CI2/application [CI2 Project Path]/
cp -R CIUnit-for-CI2/tests [CI2 Project Path]/
### Change Database Config
vi [CI2 Project Path]/application/config/database.php$active_group = 'default';
+ if (defined('CIUnit_Version')) {
+ $active_group .= '_test';
+ }
$active_record = TRUE;## Run Tests
### AllTests
cd [CI2 Project Path]/tests
phpunit### UnitTest
cd [CI2 Project Path]/tests
phpunit --no-configuration --bootstrap ../application/third_party/CIUnit/bootstrap_phpunit.php [Directory or PHP file path]## Eclipse Settings
* [External Tools](http://fukata.org/2011/06/19/codeigniter2-tips-ciunit-for-ci2-on-eclipse/)CIUnit AllTests
![CIUnit AllTests](http://farm3.static.flickr.com/2589/5847466967_be828bd800.jpg)
CIUnit UnitTest
![CIUnit UnitTest](http://farm4.static.flickr.com/3452/5848025028_d5ce7618cf.jpg)