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

(This post was last modified: 01-23-2016, 03:44 AM by kenjis.)

[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!
Reply
#2

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

(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.
Reply
#4

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

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
Reply
#6

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

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

(This post was last modified: 10-02-2015, 06:02 PM by solidcodes.)

@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.
Reply
#9

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

(This post was last modified: 10-02-2015, 06:05 PM by solidcodes.)

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




Theme © iAndrew 2016 - Forum software by © MyBB