Welcome Guest, Not a member yet? Register   Sign In
PHPUnit or CI Unit test classes ? (and continuous integration)
#1

Hi,

I want to write unit testing for my CodeIgniter project ... in order to eventually be able to perform Cotinuous Integration.

What's the usual decision: to use PHPUnit or to use CI unit test classes ?

As for continuous integration: any advices ? Jenkins or something else ?


Thanks in advance for your advices,
L@u
Reply
#2

Out of those two options - go with PHPUnit. It's pretty much the standard out there and has many more features than CI Unit test classes.

Alternatively, I've become a pretty big fan of Codeception personally. It's built on top of PHPUnit but offers a lot more. Though it can be tricky to get working correctly with Travis.

Also - Jenkins is the standard if you're going to host your own Continuous Integration server. Can't fail there.
Reply
#3

If you go with PHPUnit and use CI 3.0, I recommend to try ci-phpunit-test: http://kenjis.github.io/ci-phpunit-test/
It is very easy to install and easy to write tests.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB