https://github.com/marcelod/ciunit-for-ci2
CIUnit for CodeIgniter 2.x
https://github.com/marcelod/ciunit-for-ci2
Last synced: 8 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2013-07-29T07:41:18.000Z (almost 13 years ago)
- Last Synced: 2024-10-02T08:20:52.790Z (over 1 year 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 UnitTest
