CodeIgniter Forums
CodeIgniter Testing Guide - A New Book for Automated Testing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Learn More (https://forum.codeigniter.com/forumdisplay.php?fid=15)
+--- Thread: CodeIgniter Testing Guide - A New Book for Automated Testing (/showthread.php?tid=62949)

Pages: 1 2 3 4 5 6


CodeIgniter Testing Guide - A New Book for Automated Testing - kenjis - 09-10-2015

[2016/01/23 update]
This book was offically released. Now you can read the whole book.

Hi there,

I've started work on a new book for CodeIgniter community - CodeIgniter Testing Guide.

Do you interested in the book?

The planned table of contents is posted in the description over at CodeIgniter Testing Guide.
I would like to hear your thoughts on what's missing or if there are planned portions that are not needed.

And I want someone to proofread it, because my English is not good.

I look forward to hearing from you!


RE: CodeIgniter Testing Guide - A new book coming soon - mwhitney - 09-11-2015

I would be happy to help with proofreading, as I'm very interested in improving (or in some areas just implementing) tests on my own site.


RE: CodeIgniter Testing Guide - A new book coming soon - kenjis - 09-12-2015

(09-11-2015, 07:27 AM)mwhitney Wrote: I would be happy to help with proofreading, as I'm very interested in improving (or in some areas just implementing) tests on my own site.

Thank you! and good timing.

You must be an English native speaker. So you must be good at English.
I'll send you private message to talk about how to do in a few days.


RE: CodeIgniter Testing Guide - A new book coming soon - kenjis - 09-13-2015

I've just updated Planned Table of Contents a little:
https://leanpub.com/codeigniter-testing-guide

I look forward to hearing from you guys.
And please post the poll top of this page, if you like.


RE: CodeIgniter Testing Guide - A new book coming soon - kenjis - 09-22-2015

Here is the current TOC.
I would like to hear your thoughts on what's missing or if there are planned portions that are not needed.
Or any questions?


Quote:    1. What is Automated Testing?
        1.1 Primitive Example
        1.2 Why should you write test code?
        1.3 Finding the Middle Way
        1.4 What should you test?
        1.5 TDD or Not TDD
    2. Setting Up the Testing Environment
        2.1 Installing CodeIgniter
        2.2 Installing ci-phpunit-test
        2.3 Installing PHPUnit
        2.4 (Optional) Installing PsySH
        2.5 Installing via Composer
    3. Test Jargon
        3.1 Testing levels
        3.2 Testing Types
        3.3 Code Coverage
        3.4 Fixtures
        3.5 Test Doubles
    4. PHPUnit Basics
        4.1 Running PHPUnit
        4.2 Configuring PHPUnit
        4.3 Understanding the Basics by Testing Libraries
    5. Testing a Simple MVC Application
        5.1 Functional Testing for Controller
        5.2 Database Testing for Model
    6. Unit Testing for Models
        6.1 Why should you Test Models First?
        6.2 PHPUnit Mock Objectsions
        6.3 Testing Models without Database
        6.4 With Database or Without Database?
    7. Testing Controllers
        7.1 Why is Testing Controllers Difficult?
        7.2 Test Case for News Controller
        7.3 Mocking Model
        7.4 Unit Testing CLI Controllers
        7.5 Authentications and Redirections
        7.6 Testing REST Controllers
        7.7 What if My Controller?
    8. Browser Testing with Codeception
        8.1 What is Codeception?
        8.2 Installing and Configuring Codeception
        8.3 Writing Our First Test
        8.4 Running Tests
        8.5 Database Fixtures
        8.6 Test Case for News Controller
        8.7 Testing with Google Chrome



RE: CodeIgniter Testing Guide - A new book coming soon - kenjis - 09-30-2015

I've just updated Planned Table of Contents:
https://leanpub.com/codeigniter-testing-guide

And as you see, Mat Whitney joined the book!

The plan is to release the book for initial sale once Chapter 4 is done.
And the release will be really soon.

P.S. Please post the poll top of this page, if you guys like.


RE: CodeIgniter Testing Guide - A new book coming soon - kilishan - 10-01-2015

Awesome to hear that Mat is helping out with it! I'm looking forward to this one.


RE: CodeIgniter Testing Guide - A new book coming soon - solidcodes - 10-02-2015

@kenjis
Are you from japan dude?
Me from Philippines.

I think in your front cover book, you should include the version that your book is in focus.
Because I think the up-coming version 4.0 will be a different environment setup If I'm not mistaken.
Also will the book has an Amazon's Kindle version? This will be a good option so I can save more bucks.
Don't forget to make the price affordable.

@kilishan
Is CodeIgniter 4.0 will have a built-in php-unit or codeception? coz laravel has.
Is CodeIgniter 3.0 all of it's files and folder testable?, I think this is one of the major flaws in CodeIgniter 2.0,
If I'm not mistaken.

@mwhitney
Nice to see you are aboard the boat.
the book will be highly respected because of you.


RE: CodeIgniter Testing Guide - A new book coming soon - kenjis - 10-02-2015

Yup, I'm from Japan.

The book cover is a problem. I need a nice design, but there is not yet.
I need a good designer. :-)

We use CodeIgniter 3.0 in the book, because 4.0 does not exist yet.

I have no plan Amazon's Kindle version now. I don't say anything now.


RE: CodeIgniter Testing Guide - A new book coming soon - solidcodes - 10-02-2015

@kenjis
I know how to use Adobe Photoshop.
Perhaps I can help you design the front cover.
Just give me your idea.
By the way I'm doing this for free also.