CodeIgniter Forums
Using ci-phpunit-test for Multiple Projects - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forum-7.html)
+--- Forum: Addins (https://forum.codeigniter.com/forum-13.html)
+--- Thread: Using ci-phpunit-test for Multiple Projects (/thread-67376.html)



Using ci-phpunit-test for Multiple Projects - Jadon - 02-15-2017

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


RE: Using ci-phpunit-test for Multiple Projects - kenjis - 02-16-2017

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/ .



RE: Using ci-phpunit-test for Multiple Projects - Jadon - 02-16-2017

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!


RE: Using ci-phpunit-test for Multiple Projects - kenjis - 02-16-2017

Added Tips page: https://github.com/kenjis/ci-phpunit-test/blob/master/docs/Tips.md