Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6077565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:44:07+00:00 2026-05-23T10:44:07+00:00

I have been reading about TDD/BDD for quite a while now but I could

  • 0

I have been reading about TDD/BDD for quite a while now but I could never figure out how to implement it in a project.

This is a simplified version of the project I am currently working :
A website that lets people signup, post used books for sale. People that needs these books can search for books posted for sale close-by and send an email message to the seller via the website.

This is being written in CodeIgniter with me as the only developer working on it. For this scenario, can you please tell me how exactly would I go about testing – where to begin with and what would be tested.

I’ve been wanting to do this for quite a while, I kind of understand the concept, but the actual implementation eludes me, many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:44:07+00:00Added an answer on May 23, 2026 at 10:44 am

    The unit tester that shipped with the last version of CI I used was poor, it just checked true or not.

    I found this interesting project which seemed to be maintained up to last year at least:

    http://jensroland.com/projects/toast/

    Maybe there is something there to help you get started, maybe in the readme files – if not here is the original post where this idea seems to have emanated from.

    http://codeigniter.com/forums/viewthread/76703

    You could start off by checking your models bring back an expected set of values. ie assert true that “get first 10 books” actually brings back 10 records – this means setting up a test database however, and being able to set up (fill with test data) and tear down that database at will. That is a bit of a bind, but in an MVC situation when starting with TDD it might be the easiest to get your head round.

    TDD (ie the idea of developing test/code in that order) makes the most sense when creating your own classes – which you might think of as “helpers” in a typical CI setup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading about the issue with trying to figure out the actual
I have been reading about jQuery's deferreds, but I can't quite grasp how to
I have been reading quite a bit recently about TDD and such and I'm
I have been reading about Scala for a while and even wrote some small
I have been reading about exception handling on the Apple developer docs , but
I have been reading about dependency properties in several books but all have one
I have been reading about out of memory conditions on Linux, and the following
I have been reading about the syncroot element but I can't find it in
I'm just starting out with unit testing in C#. I have been reading about
I have been reading about try/finally on MSDN and found out following code. They

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.