• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using ci-phpunit-test for Multiple Projects

#1
Question 
The ci-phpunit-test library is great, but I am looking for a way for multiple projects to share it so that I don't have to add over 900 files to each project. Ideally, it would sit in a shared location and each project would just have the files with the unit tests for that project.
I'd appreciate advice on handling this.

https://kenjis.github.io/ci-phpunit-test
Reply

#2
How about using symlink?

After installing ci-phpunit-test, run the following commands:
Code:
$ cd /path/to/your/codeigniter/application/test
$ rm -rf _ci_phpunit_test
$ ln -s /path/to/ci-phpunit-test/application/tests/_ci_phpunit_test/ .
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply

#3
Works perfectly!  Big Grin

Might I suggest adding a short section to your project's readme about this?

Thanks for your quick reply! You've done great work!
Reply

#4
Added Tips page: https://github.com/kenjis/ci-phpunit-tes...cs/Tips.md
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.