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 3352936
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:05:26+00:00 2026-05-18T02:05:26+00:00

Are you for one or the other? Or both? My understanding is unit tests:

  • 0

Are you for one or the other? Or both?

My understanding is unit tests:

  • validate the system from the developer’s point of view
  • help developers practice TDD
  • keep code modular
  • assist in detecting errors at low levels of granularity

Acceptance tests:

  • validate the system from the business and QC / QA points of view
  • tend to be high level as they’re often written by people not familiar with the inner workings of the code

I feel both are necessary. However, for minimization of redundant work, is it a good idea to try to incorporate unit tests into acceptance tests? In other words, have the latter call the former. Does going in the opposite direction make any sense?

What are your thoughts in general on unit tests vs. acceptance tests, and how to manage them in relation to each other?

  • 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-18T02:05:27+00:00Added an answer on May 18, 2026 at 2:05 am

    Acceptance and integration tests tell you whether your code is working and complete; unit tests tell you where it’s failing.

    If you’ve done a good job with acceptance and integration tests, and they’re passing, your code is implementing all the functionality it’s supposed to, and it’s working. That’s great to know (it’s also great to know that it isn’t). But if it isn’t working, an acceptance test won’t give you much insight into what has gone wrong; since it tests many units of functionality, it can be kind of a bird’s-eye view of failure. This is where unit tests shine. Good unit tests tell you exactly what went wrong, with exactly what part of your code. It’s harder to know whether you’ve written enough unit tests than acceptance tests, but when you have a failing acceptance test without a corresponding failing unit test – it’s time to write that unit test.

    That is all from the testing perspective. And, of course, TDD isn’t (and ATDD isn’t) about testing. With respect to driving your design, acceptance tests give you a broad roadmap (“here’s where you want to go”) while unit tests take you to the next intersection (“turn left”). They’re both valuable in this regard and, again, their value complement one another.

    Don’t confuse them; don’t miscegenate them. Unit tests, in particular, shouldn’t depend on anything else, and it would be a mistake to constrain your unit tests by making acceptance test dependent on them. Of course they can share some framework code, but they should be independent.

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

Sidebar

Related Questions

My understanding is that both of these create a NSMutableString, only the first one
I'm copying data from a table to an other one. I'm wondering what would
I have a base URL : http://my.server.com/folder/directory/sample And a relative one : ../../other/path How
I have 2 vector of with one has vec1{e1,e2,e3,e4} and the other one with
what happens if an user trying to read HttpContext.Current.Cache[key] while the other one trying
Why use one over the other?
When should I choose one or the other? What are the implications regarding space
I have two processes one will query other for data.There will be huge amount
And why would I use one over the other in my code?
This question is a follow up on one of my other questions, Can I

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.