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

  • SEARCH
  • Home
  • 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 3854794
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:40:39+00:00 2026-05-19T17:40:39+00:00

In TDD, every body talks about creation of unit tests and how development is

  • 0

In TDD, every body talks about creation of unit tests and how development is done. I know whole cycle but no body talks about the creation of these unit tests from requirements?
I have read somewhere in the literature that it is always good to create a test-list before developing these unit tests. My question is:
What exactly the procedure (steps) being followed before writing unit tests in TDD? means that whether the Unit tests are written directly from the requirements without using any formal standard or test-lists are created before developing them?

  • 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-19T17:40:39+00:00Added an answer on May 19, 2026 at 5:40 pm

    The test list only is a temporary repository for the next test cases. It is totally informal.

    The main role of the test-list is here to free your mind. When you think about a new test, just write it down at the end of your list, then you can and forget it, and focus on the problem at hand.

    There is no procedure to write the tests and the list, it’s just as when you create an UML model from the requirements. You think about the problem and produce a design. Once the design is complete, you start the implementation. With TDD, you think about the problem from a testing perspective, you write down some tests on the list and you start with the simpler test in the list. You can add (or remove) a test to the list at any time.

    The bowling game episode is a short read that illustrates the transition from requirements to unit tests. It does not mention any test-list though.

    I maintain my test-list as comments at the bottom of my unit tests source file.

    void test_foobarShallFailWithNull(void) {
    ...
    }
    // the tests I *may* write next
    //void test_foobarShallFailWhenX(void)
    //void test_foobarShallWorkWhenY(void)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I do TDD, and I've been fairly loose in organizing my unit tests. I
I have never done any testing in javascript. I know, I know. But the
Started learning TDD and met some misunderstandings about different approaches for writing tests. In
Chapter about TDD from Martin's Clean Code caught my imagination. However. These days I
I've read a lot lately about TDD, but I've only seen small examples. Now
I've started TDD some weeks ago. I have to do Unit Tests on a
When doing TDD , how to tell that's enough tests for this class /
I do TDD on a daily basis for my C++ development on Solaris10. It
I have been doing TDD and was using it more as unit testing than
I'm learning TDD (in Javascript), and I wanted to know, what is the right

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.