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
#54

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


Messages In This Thread
RE: CodeIgniter Testing Guide - A New Book for Automated Testing - by kenjis - 05-09-2016, 09:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB