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

Thank you for waiting!

I have published the update: https://leanpub.com/codeigniter-testing-guide

This is the fourth release of the book. It includes Chapter 7, Testing Controllers.

We will learn more about testing controllers from now on. This chapter includes Mocking Models and Authentication and Redirection.

This release also includes:
  • 2.3 (Optional) Installing VisualPHPUnit
  • 4.2 Running PHPUnit via Web Browser
It is useful when you or your colleagues don't like CLI.

We hope you enjoy the current 132 pages. We will release a new chapter soon.

P.S. If you want to evaluate the book, you can download free sample: http://samples.leanpub.com/codeigniter-t...sample.pdf
Reply
#42

Hi there!

I have published the update: https://leanpub.com/codeigniter-testing-guide

This is the 5th release of the book. It includes Chapter 8, Unit Testing CLI Controllers.

We will continue learning about testing controllers. This chapter includes some common testing topics like Testing Exceptions, Testing Output, and the powerful ci-phpuit-test feature Monkey Patching.

We hope you enjoy the current 144 pages. We will release a new chapter soon.
Reply
#43

I tries to publish the update, but because of system trouble the publishing does not finished.

The page says Updated 8 days Ago: https://leanpub.com/codeigniter-testing-guide

But it seems that the PDF is updated completed. Please download the PDF and check it.


This is the 6th release of the book. It includes Chapter 9, "Testing REST Controllers".

The chapter is the last chapter for testing controllers and testing with PHPUnit.
We use CodeIgniter Rest Server, and will write tests for REST controllers.
Reply
#44

Hello again.

I was able to publish the update: https://leanpub.com/codeigniter-testing-guide

This is the 6th release of the book. It includes Chapter 9, "Testing REST Controllers".
The PDF yesterday was not completely updated. Please discard it, and download again.

We have finished all PHPUnit topics. If you learn with this book, you will be able to
write PHPUnit tests for your application.

The last chapter is about Browser Testing with Codeception. It is another exciting
topic. Please look forward to it.
Reply
#45

php7 was released. All PHPUnit test code in the book runs on php7.

Code:
[[email protected] tests]$ php -v
PHP 7.0.0 (cli) (built: Dec  1 2015 17:53:27) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
  with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
  with Xdebug v2.4.0rc1, Copyright (c) 2002-2015, by Derick Rethans

[[email protected] tests]$ php phpunit.phar
#!/usr/bin/env php
PHPUnit 4.8.6 by Sebastian Bergmann and contributors.

....................................................

Time: 3.28 seconds, Memory: 28.00Mb

OK (52 tests, 75 assertions)

Generating code coverage report in Clover XML format ... done

Generating code coverage report in HTML format ... done
Reply
#46

kenjis has definitely been the driving force of this book, and I've been happy to keep to myself so far, but I feel like I've made a lot of progress today, so I wanted to add an update of my own.

I think it's safe to say that I've been holding up the final publication of this book, as I've only had so much time to read and edit what kenjis has written. When I started on this project, most of the first draft of the book was already written. Since then, kenjis has added a couple of chapters and an additional Appendix (inspired by Lonnie's post, I'm sure), and has even gone back and added some content to some of the early chapters.

I still have to go back and review some of those additions to the early chapters, and I think there's still room for improvement, but we're getting very close to what I would consider a release candidate of the book. I'm hoping we can do it by Christmas or the new year, and it may be sooner if I can free up enough time.

Every once in a while, I come to a point in my life where a few large and important projects seem to fall into my lap, and I can't help but see this as one of those times (and this book as one of those projects). While I intend to continue working on this book beyond the initial release, I'm also hoping to put in a lot of time and effort on this project in the short term to make it possible to focus more of my future time and effort on some of those other projects (all CI-related to some degree, though, I assure you).
Reply
#47

Hi guys!

I have published the update: https://leanpub.com/codeigniter-testing-guide

This is the 7th release of the book. It includes Chapter 10, Browser Testing with Codeception and Appendix A, How to Read ci-phpunit-test.

Yes, now you can read the whole book. This is a release candidate of the book.

Chapter 10 is the last chapter. We will install Codeception and Selenium Server, learn how to configure them, and how to write browser tests.

You can automate your browser testing. It is an exciting topic, and really useful.

If you are waiting for the whole book, you don't have to wait any longer.
I recommend you buy it now. The discount price will end soon.
Reply
#48

Hi everyone!

We have finally published the official release of the book, "CodeIgniter Testing Guide".
We added another Appendix, "How to Speed Up Testing".

You can get the book from:
https://leanpub.com/codeigniter-testing-guide

"CodeIgniter Testing Guide" is a beginners' guide to automated testing in PHP.
We use PHPUnit and write test code for CodeIgniter 3.0 web applications.

This book is for PHP developers who don't know Automated Testing or Unit Testing,
or for those looking for help testing CodeIgniter applications.

If one or more of the lines below sounds familiar, this book is perfect for you!
  • I have never written test code.
  • I want to write test code, but I don't know how.
  • I tried to write test code in the past, but I couldn't quite figure it out.
We hope you enjoy the book!
Reply
#49

Congrats for making it to the final release!
Reply
#50

i've been reading your book (codeigniter-testing-guide) and have some doubts about choosing the best unit test environment for my CI project, i hope someone can answer my question:

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) ?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB