Welcome Guest, Not a member yet? Register   Sign In
Poll: Do you write test code for your CodeIgniter application?
You do not have permission to vote in this poll.
Yes
52.17%
12 52.17%
No
47.83%
11 47.83%
Total 23 vote(s) 100%
* You voted for this item. [Show Results]

CodeIgniter Testing Guide - A New Book for Automated Testing
#56

(05-09-2016, 09:30 PM)kenjis Wrote: > what are the advantages of using "ci-phpunit-test" instead of "codeception" (acceptance and functional tests) with a "ci_instance" (unit tests) that loads all the components (database, session, helpers, models, etc) ?

First of all, I recommend Codeception for acceptance tests. Our book has a chapter for it.

The advantages that I think:

* No runkit required.
* More tested by many users.
* Has more hacks for improving testablities of CodeIgniter.
* Functionality to inject mocks into controllers (functional tests).
* Has documentation (and this Book).

I'm not sure your approach has test isolation. I mean one test does not affect another test.
But if you use runkit, you can probably do whatever.

I think you have a point, thanks for sharing your knowledge and your experience with all of us, also congratulations for finishing your book, i purchased a copy because i follow your work from some time ago, keep up the excellent work Smile
Reply


Messages In This Thread
RE: CodeIgniter Testing Guide - A New Book for Automated Testing - by dsv - 05-10-2016, 08:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB